ASoC: twl6040, fsl: use to_platform_device
[deliverable/linux.git] / sound / soc / fsl / p1022_ds.c
index 747aab0602bd21dc5402dadd8cb59c35f544fc06..a1f780ecadf54d4e679d39aac2803e24c8be39ec 100644 (file)
@@ -199,8 +199,7 @@ static int p1022_ds_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.062061 seconds and 5 git commands to generate.