summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/p1022_rdk.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-23 21:03:39 +0800
committerMark Brown <broonie@kernel.org>2015-12-24 19:42:42 +0000
commitbb18f0976ef8db41f68b66623ce3b8a745adb0b8 (patch)
treeb719e75a8d341c1406d68abd22d620a3eb69f45c /sound/soc/fsl/p1022_rdk.c
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadlwn-bb18f0976ef8db41f68b66623ce3b8a745adb0b8.tar.gz
lwn-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/p1022_rdk.c')
-rw-r--r--sound/soc/fsl/p1022_rdk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/p1022_rdk.c b/sound/soc/fsl/p1022_rdk.c
index 1dd49e5f9675..d4d88a8cb9c0 100644
--- a/sound/soc/fsl/p1022_rdk.c
+++ b/sound/soc/fsl/p1022_rdk.c
@@ -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;