i2c: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
@@ -1075,7 +1075,7 @@ omap_i2c_probe(struct platform_device *pdev)
|
||||
struct i2c_adapter *adap;
|
||||
struct resource *mem;
|
||||
const struct omap_i2c_bus_platform_data *pdata =
|
||||
pdev->dev.platform_data;
|
||||
dev_get_platdata(&pdev->dev);
|
||||
struct device_node *node = pdev->dev.of_node;
|
||||
const struct of_device_id *match;
|
||||
int irq;
|
||||
|
Reference in New Issue
Block a user