]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/soc/fsl/imx-wm8962.c
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[karo-tx-linux.git] / sound / soc / fsl / imx-wm8962.c
index 9fd7a65ae83b3fd9125e279420f2fc4149749ae3..722afe69169e904798974115292159a89a08ba18 100644 (file)
@@ -217,7 +217,8 @@ static int imx_wm8962_probe(struct platform_device *pdev)
        codec_dev = of_find_i2c_device_by_node(codec_np);
        if (!codec_dev || !codec_dev->driver) {
                dev_err(&pdev->dev, "failed to find codec platform device\n");
-               return -EINVAL;
+               ret = -EINVAL;
+               goto fail;
        }
 
        data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);