diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 04:10:05 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-07-31 08:01:29 -0400 |
commit | 334a41ce9b753ec615e8c6c50ee07d6197190610 (patch) | |
tree | a56c8e04be30b8839ba11179ceffaad0b0bb8bc2 /drivers/mfd/sm501.c | |
parent | 3e4f8789946de61c61ce6a373d069d55725d956c (diff) |
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) | |||
840 | if (!pdev) | 840 | if (!pdev) |
841 | return -ENOMEM; | 841 | return -ENOMEM; |
842 | 842 | ||
843 | uart_data = pdev->dev.platform_data; | 843 | uart_data = dev_get_platdata(&pdev->dev); |
844 | 844 | ||
845 | if (devices & SM501_USE_UART0) { | 845 | if (devices & SM501_USE_UART0) { |
846 | sm501_setup_uart_data(sm, uart_data++, 0x30000); | 846 | sm501_setup_uart_data(sm, uart_data++, 0x30000); |
@@ -1167,7 +1167,7 @@ static int sm501_register_gpio_i2c_instance(struct sm501_devdata *sm, | |||
1167 | if (!pdev) | 1167 | if (!pdev) |
1168 | return -ENOMEM; | 1168 | return -ENOMEM; |
1169 | 1169 | ||
1170 | icd = pdev->dev.platform_data; | 1170 | icd = dev_get_platdata(&pdev->dev); |
1171 | 1171 | ||
1172 | /* We keep the pin_sda and pin_scl fields relative in case the | 1172 | /* We keep the pin_sda and pin_scl fields relative in case the |
1173 | * same platform data is passed to >1 SM501. | 1173 | * same platform data is passed to >1 SM501. |
@@ -1403,7 +1403,7 @@ static int sm501_plat_probe(struct platform_device *dev) | |||
1403 | 1403 | ||
1404 | sm->dev = &dev->dev; | 1404 | sm->dev = &dev->dev; |
1405 | sm->pdev_id = dev->id; | 1405 | sm->pdev_id = dev->id; |
1406 | sm->platdata = dev->dev.platform_data; | 1406 | sm->platdata = dev_get_platdata(&dev->dev); |
1407 | 1407 | ||
1408 | ret = platform_get_irq(dev, 0); | 1408 | ret = platform_get_irq(dev, 0); |
1409 | if (ret < 0) { | 1409 | if (ret < 0) { |