diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 03:59:33 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-08-19 13:46:30 -0400 |
commit | 6d4028c644edc0a2e4a8c948ebf81e8f2f09726e (patch) | |
tree | 89368ad03dc603de4af756ba3e5260cee489f023 /drivers/i2c/busses/i2c-imx.c | |
parent | cda2109a26eb6fa58acfeae878eed87492480eae (diff) |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-imx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 9c0f8bda692a..a231d2fd91ce 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c | |||
@@ -596,7 +596,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev) | |||
596 | &pdev->dev); | 596 | &pdev->dev); |
597 | struct imx_i2c_struct *i2c_imx; | 597 | struct imx_i2c_struct *i2c_imx; |
598 | struct resource *res; | 598 | struct resource *res; |
599 | struct imxi2c_platform_data *pdata = pdev->dev.platform_data; | 599 | struct imxi2c_platform_data *pdata = dev_get_platdata(&pdev->dev); |
600 | void __iomem *base; | 600 | void __iomem *base; |
601 | int irq, ret; | 601 | int irq, ret; |
602 | u32 bitrate; | 602 | u32 bitrate; |