diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:10:05 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-07-31 14:01:29 +0200 |
commit | 334a41ce9b753ec615e8c6c50ee07d6197190610 (patch) | |
tree | a56c8e04be30b8839ba11179ceffaad0b0bb8bc2 /drivers/mfd/sm501.c | |
parent | mfd: wm831x: Remove erronious bits per word set (diff) | |
download | linux-334a41ce9b753ec615e8c6c50ee07d6197190610.tar.xz linux-334a41ce9b753ec615e8c6c50ee07d6197190610.zip |
mfd: 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: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sm501.c')
-rw-r--r-- | drivers/mfd/sm501.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 9816c232e583..33f040c558d0 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -840,7 +840,7 @@ static int sm501_register_uart(struct sm501_devdata *sm, int devices) if (!pdev) return -ENOMEM; - uart_data = pdev->dev.platform_data; + uart_data = dev_get_platdata(&pdev->dev); if (devices & SM501_USE_UART0) { sm501_setup_uart_data(sm, uart_data++, 0x30000); @@ -1167,7 +1167,7 @@ static int sm501_register_gpio_i2c_instance(struct sm501_devdata *sm, if (!pdev) return -ENOMEM; - icd = pdev->dev.platform_data; + icd = dev_get_platdata(&pdev->dev); /* We keep the pin_sda and pin_scl fields relative in case the * same platform data is passed to >1 SM501. @@ -1403,7 +1403,7 @@ static int sm501_plat_probe(struct platform_device *dev) sm->dev = &dev->dev; sm->pdev_id = dev->id; - sm->platdata = dev->dev.platform_data; + sm->platdata = dev_get_platdata(&dev->dev); ret = platform_get_irq(dev, 0); if (ret < 0) { |