ASoC: twl6040, fsl: use to_platform_device
[deliverable/linux.git] / sound / soc / fsl / mpc8610_hpcd.c
index 6f236f170cf5fe6c4369612ead1d4d4e6dd4f591..ddf49f30b23fc9a2faa3934c81c3712c5b2cc627 100644 (file)
@@ -189,8 +189,7 @@ static int mpc8610_hpcd_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 mpc8610_hpcd_data *machine_data;
This page took 0.058152 seconds and 5 git commands to generate.