Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-block.git] / sound / soc / stm / stm32_spdifrx.c
index ae7a0f46a6fb13b8c6a7fc5f90250c7a1ccea5a8..1bfa3b2ba9744af351ebe38682d6c11e3846256c 100644 (file)
@@ -1038,6 +1038,8 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
 
        if (idr == SPDIFRX_IPIDR_NUMBER) {
                ret = regmap_read(spdifrx->regmap, STM32_SPDIFRX_VERR, &ver);
+               if (ret)
+                       goto error;
 
                dev_dbg(&pdev->dev, "SPDIFRX version: %lu.%lu registered\n",
                        FIELD_GET(SPDIFRX_VERR_MAJ_MASK, ver),