ASoC: twl6040, fsl: use to_platform_device
[deliverable/linux.git] / sound / soc / fsl / p1022_rdk.c
index 1dd49e5f967591737a5fd5a63e328949daaed496..d4d88a8cb9c066296e1254445704880f3e91b34e 100644 (file)
@@ -203,8 +203,7 @@ static int p1022_rdk_probe(struct platform_device *pdev)
 {
        struct device *dev = pdev->dev.parent;
        /* ssi_pdev is the platform device for the SSI node that probed us */
-       struct platform_device *ssi_pdev =
-               container_of(dev, struct platform_device, dev);
+       struct platform_device *ssi_pdev = to_platform_device(dev);
        struct device_node *np = ssi_pdev->dev.of_node;
        struct device_node *codec_np = NULL;
        struct machine_data *mdata;
This page took 0.023749 seconds and 5 git commands to generate.