Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[muen/linux.git] / drivers / thermal / imx_thermal.c
index cbfcca828cd792b96d89daa46fa8620a96fd300b..aa452acb60b6c93f2ca0d8ace93aa7c4cc883d32 100644 (file)
@@ -605,7 +605,10 @@ static int imx_init_from_nvmem_cells(struct platform_device *pdev)
        ret = nvmem_cell_read_u32(&pdev->dev, "calib", &val);
        if (ret)
                return ret;
-       imx_init_calib(pdev, val);
+
+       ret = imx_init_calib(pdev, val);
+       if (ret)
+               return ret;
 
        ret = nvmem_cell_read_u32(&pdev->dev, "temp_grade", &val);
        if (ret)