diff options
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
-rw-r--r-- | drivers/tty/serial/ifx6x60.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index 8b1534c424af..af286e6713eb 100644 --- a/drivers/tty/serial/ifx6x60.c +++ b/drivers/tty/serial/ifx6x60.c | |||
@@ -1008,7 +1008,7 @@ static int ifx_spi_spi_probe(struct spi_device *spi) | |||
1008 | return -ENODEV; | 1008 | return -ENODEV; |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | pl_data = (struct ifx_modem_platform_data *)spi->dev.platform_data; | 1011 | pl_data = (struct ifx_modem_platform_data *)dev_get_platdata(&spi->dev); |
1012 | if (!pl_data) { | 1012 | if (!pl_data) { |
1013 | dev_err(&spi->dev, "missing platform data!"); | 1013 | dev_err(&spi->dev, "missing platform data!"); |
1014 | return -ENODEV; | 1014 | return -ENODEV; |