X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fspi%2Fspi-s3c64xx.c;h=2465d6d35b068fa5158073a515ca562973ffc239;hb=b5f9a9d5113efe11a3b9dad600a6f833274da595;hp=63e2070c6c14aa8e39a64a850248e07a38546708;hpb=8d4d08ce8319ae26227c4dd558405963c14c2037;p=deliverable%2Flinux.git diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 63e2070c6c14..2465d6d35b06 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1275,7 +1275,7 @@ static struct s3c64xx_spi_info *s3c64xx_spi_parse_dt(struct device *dev) #else static struct s3c64xx_spi_info *s3c64xx_spi_parse_dt(struct device *dev) { - return dev->platform_data; + return dev_get_platdata(dev); } #endif @@ -1300,7 +1300,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) struct resource *mem_res; struct resource *res; struct s3c64xx_spi_driver_data *sdd; - struct s3c64xx_spi_info *sci = pdev->dev.platform_data; + struct s3c64xx_spi_info *sci = dev_get_platdata(&pdev->dev); struct spi_master *master; int ret, irq; char clk_name[16];