Commit 1e2c2390 authored by Olof Johansson's avatar Olof Johansson

i2c: davinci: Fix bad dev_get_platdata() conversion

commit 6d4028c6 (i2c: use dev_get_platdata()) did a bad conversion
of this one case:

  drivers/i2c/busses/i2c-davinci.c: In function 'davinci_i2c_probe':
  drivers/i2c/busses/i2c-davinci.c:665:2: warning: passing argument 1 of
	'dev_get_platdata' from incompatible pointer type [enabled by default]
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 3c78d113
...@@ -662,7 +662,7 @@ static int davinci_i2c_probe(struct platform_device *pdev) ...@@ -662,7 +662,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
#endif #endif
dev->dev = &pdev->dev; dev->dev = &pdev->dev;
dev->irq = irq->start; dev->irq = irq->start;
dev->pdata = dev_get_platdata(&dev->dev); dev->pdata = dev_get_platdata(&pdev->dev);
platform_set_drvdata(pdev, dev); platform_set_drvdata(pdev, dev);
if (!dev->pdata && pdev->dev.of_node) { if (!dev->pdata && pdev->dev.of_node) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment