diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-sh7760.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sh7760.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-sh7760.c b/drivers/i2c/busses/i2c-sh7760.c index 5351a2f34912..5e8f136e233f 100644 --- a/drivers/i2c/busses/i2c-sh7760.c +++ b/drivers/i2c/busses/i2c-sh7760.c | |||
@@ -437,7 +437,7 @@ static int sh7760_i2c_probe(struct platform_device *pdev) | |||
437 | struct cami2c *id; | 437 | struct cami2c *id; |
438 | int ret; | 438 | int ret; |
439 | 439 | ||
440 | pd = pdev->dev.platform_data; | 440 | pd = dev_get_platdata(&pdev->dev); |
441 | if (!pd) { | 441 | if (!pd) { |
442 | dev_err(&pdev->dev, "no platform_data!\n"); | 442 | dev_err(&pdev->dev, "no platform_data!\n"); |
443 | ret = -ENODEV; | 443 | ret = -ENODEV; |