]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/spi/spi-omap-100k.c
spi: use dev_get_platdata()
[mirror_ubuntu-artful-kernel.git] / drivers / spi / spi-omap-100k.c
index ee25670f8cfd127341fff7ddc16562a7e512507d..b0e1d88f1635e66e63afd82ce95d108a4e03746c 100644 (file)
@@ -512,7 +512,7 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
         * You should allocate this with ioremap() before initializing
         * the SPI.
         */
-       spi100k->base = (void __iomem *) pdev->dev.platform_data;
+       spi100k->base = (void __iomem *)dev_get_platdata(&pdev->dev);
 
        INIT_WORK(&spi100k->work, omap1_spi100k_work);