Skip to content

Commit 40df249

Browse files
larsclausenWolfram Sang
authored andcommitted
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>
1 parent a7cde6d commit 40df249

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/fsl/imx-wm8962.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
215215
goto fail;
216216
}
217217
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) {
219219
dev_err(&pdev->dev, "failed to find codec platform device\n");
220220
ret = -EINVAL;
221221
goto fail;

0 commit comments

Comments
 (0)