diff options
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) { |