Merge remote-tracking branch 'spi/topic/pl022' into spi-next
[linux-drm-fsl-dcu.git] / drivers / spi / spi-pl022.c
index 1871bf3fd389a3da29318b050e7f1581aeea9d82..5a9e05e20bb5b4e0e61231e35cf538b565ddc550 100644 (file)
@@ -2091,7 +2091,8 @@ pl022_platform_data_dt_get(struct device *dev)
 static int pl022_probe(struct amba_device *adev, const struct amba_id *id)
 {
        struct device *dev = &adev->dev;
-       struct pl022_ssp_controller *platform_info = adev->dev.platform_data;
+       struct pl022_ssp_controller *platform_info =
+                       dev_get_platdata(&adev->dev);
        struct spi_master *master;
        struct pl022 *pl022 = NULL;     /*Data for this driver */
        struct device_node *np = adev->dev.of_node;