|
@@ -598,7 +598,7 @@ static int rcar_thermal_probe(struct platform_device *pdev)
|
|
enr_bits |= 3 << (i * 8);
|
|
enr_bits |= 3 << (i * 8);
|
|
}
|
|
}
|
|
|
|
|
|
- if (enr_bits)
|
|
|
|
|
|
+ if (common->base && enr_bits)
|
|
rcar_thermal_common_write(common, ENR, enr_bits);
|
|
rcar_thermal_common_write(common, ENR, enr_bits);
|
|
|
|
|
|
dev_info(dev, "%d sensor probed\n", i);
|
|
dev_info(dev, "%d sensor probed\n", i);
|