thermal: imx: register irq handler later in probe
authorBai Ping <b51503@freescale.com>
Mon, 14 Sep 2015 11:09:51 +0000 (19:09 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 30 Oct 2015 18:22:47 +0000 (11:22 -0700)
commit84866ee5818e95f6e97194656777c10ac24cb9d3
treeea3fd5a849ebc5dd8d3daf8dc543037223df6fef
parent452e01b3dbb54f743a200c722981ced169888860
thermal: imx: register irq handler later in probe

The irq handler should be registered after the tempmon
module has been initialized in a known state and the
thermal_zone and cpu_cooling device have been registered
successfully. Otherwise, if the irq is triggled earlier
before thermal probe has been finished, it may lead to
'NULL' pointer kernel panic.

Signed-off-by: Bai Ping <b51503@freescale.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c