]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: imx-wm8962: Don't use i2c_client->driver
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 29 Sep 2013 08:51:05 +0000 (10:51 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 3 Oct 2013 20:28:30 +0000 (22:28 +0200)
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>
sound/soc/fsl/imx-wm8962.c

index 722afe69169e904798974115292159a89a08ba18..cd106aa39984f32152281a80ea7812837ea789d0 100644 (file)
@@ -215,7 +215,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
                goto fail;
        }
        codec_dev = of_find_i2c_device_by_node(codec_np);
-       if (!codec_dev || !codec_dev->driver) {
+       if (!codec_dev || !codec_dev->dev.driver) {
                dev_err(&pdev->dev, "failed to find codec platform device\n");
                ret = -EINVAL;
                goto fail;