thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 15 Dec 2015 01:17:56 +0000 (01:17 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 7 Jan 2016 02:06:38 +0000 (18:06 -0800)
commitffbcdf8a759c6dde71c6c4f646a552f7637bcca7
treebab124bea2f16dae4a300adeee307361fb6a90fa
parenta1ade5653804b8eb9d14c5ba964da6d5c2f4cd30
thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()

Current rcar thermal driver sometimes checks irq possibility when it
calls rcar_thermal_irq_enable/disable(), but sometimes not.
This patch checks it inside rcar_thermal_irq_enable/disable().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_thermal.c