thermal: exynos: Correct sanity check at exynos_report_trigger() function
[cascardo/linux.git] / drivers / thermal / samsung / exynos_tmu.c
index 864eec8..b6a6e90 100644 (file)
@@ -172,8 +172,8 @@ static void exynos_report_trigger(struct exynos_tmu_data *p)
        unsigned long temp;
        unsigned int i;
 
-       if (!p) {
-               pr_err("Wrong temperature configuration data\n");
+       if (!tz) {
+               pr_err("No thermal zone device defined\n");
                return;
        }