diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-29 04:51:05 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-10-03 16:28:30 -0400 |
commit | 40df24997f947ab5b745d570d56a003705868dcc (patch) | |
tree | 4d1f816b752207f78553ef1d3fe336301b618626 /sound | |
parent | a7cde6d25c494e1bc8c4f89d3096b2fe077c5416 (diff) |
ASoC: imx-wm8962: Don't use i2c_client->driver
The 'driver' field of the i2c_client struct is redundant and is going to be
removed. Check i2c_client->dev.driver instead to see if a driver is bound to the
device.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8962.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index 722afe69169e..cd106aa39984 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c | |||
@@ -215,7 +215,7 @@ static int imx_wm8962_probe(struct platform_device *pdev) | |||
215 | goto fail; | 215 | goto fail; |
216 | } | 216 | } |
217 | codec_dev = of_find_i2c_device_by_node(codec_np); | 217 | codec_dev = of_find_i2c_device_by_node(codec_np); |
218 | if (!codec_dev || !codec_dev->driver) { | 218 | if (!codec_dev || !codec_dev->dev.driver) { |
219 | dev_err(&pdev->dev, "failed to find codec platform device\n"); | 219 | dev_err(&pdev->dev, "failed to find codec platform device\n"); |
220 | ret = -EINVAL; | 220 | ret = -EINVAL; |
221 | goto fail; | 221 | goto fail; |