diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 14:03:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-24 20:42:42 +0100 |
commit | bb18f0976ef8db41f68b66623ce3b8a745adb0b8 (patch) | |
tree | b719e75a8d341c1406d68abd22d620a3eb69f45c /sound/soc/fsl/mpc8610_hpcd.c | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-bb18f0976ef8db41f68b66623ce3b8a745adb0b8.tar.xz linux-bb18f0976ef8db41f68b66623ce3b8a745adb0b8.zip |
ASoC: twl6040, fsl: use to_platform_device
Use to_platform_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/mpc8610_hpcd.c')
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 6f236f170cf5..ddf49f30b23f 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c @@ -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; |