]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: core: prevent zones with no types to be registered
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:08:39 +0000 (21:08 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
commit54fa38cc2eda43599b51695f9918208e7250ac46
tree4a0a635b5402c8c272a6df32f63081e52b7b2119
parent23400ac997062647f2b63c82030d189671b1effe
thermal: core: prevent zones with no types to be registered

There are APIs that rely on tz->type. This patch
prevent thermal zones without it to be registered.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c