diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 09:59:33 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-08-19 19:46:30 +0200 |
commit | 6d4028c644edc0a2e4a8c948ebf81e8f2f09726e (patch) | |
tree | 89368ad03dc603de4af756ba3e5260cee489f023 /drivers/i2c/busses/i2c-mv64xxx.c | |
parent | i2c: omap: query STP always when NACK is received (diff) | |
download | linux-6d4028c644edc0a2e4a8c948ebf81e8f2f09726e.tar.xz linux-6d4028c644edc0a2e4a8c948ebf81e8f2f09726e.zip |
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-mv64xxx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index b1f42bf40963..9cc361d19941 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -618,7 +618,7 @@ static int mv64xxx_i2c_probe(struct platform_device *pd) { struct mv64xxx_i2c_data *drv_data; - struct mv64xxx_i2c_pdata *pdata = pd->dev.platform_data; + struct mv64xxx_i2c_pdata *pdata = dev_get_platdata(&pd->dev); struct resource *r; int rc; |