ASoC: twl6040, fsl: use to_platform_device
[deliverable/linux.git] / sound / soc / codecs / twl6040.c
index 4cad8929d26221f952863ed52772abebcc03fca3..bc3de2e844e68b80d8bf96dcc5c66f96d1a82669 100644 (file)
@@ -1097,8 +1097,7 @@ static int twl6040_probe(struct snd_soc_codec *codec)
 {
        struct twl6040_data *priv;
        struct twl6040 *twl6040 = dev_get_drvdata(codec->dev->parent);
-       struct platform_device *pdev = container_of(codec->dev,
-                                                  struct platform_device, dev);
+       struct platform_device *pdev = to_platform_device(codec->dev);
        int ret = 0;
 
        priv = devm_kzalloc(codec->dev, sizeof(*priv), GFP_KERNEL);
This page took 0.023678 seconds and 5 git commands to generate.