aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-nuc900.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-nuc900.c')
-rw-r--r--drivers/i2c/busses/i2c-nuc900.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-nuc900.c b/drivers/i2c/busses/i2c-nuc900.c
index 865ee350adb..36394d737fa 100644
--- a/drivers/i2c/busses/i2c-nuc900.c
+++ b/drivers/i2c/busses/i2c-nuc900.c
@@ -525,7 +525,7 @@ static int nuc900_i2c_probe(struct platform_device *pdev)
struct resource *res;
int ret;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (!pdata) {
dev_err(&pdev->dev, "no platform data\n");
return -EINVAL;