thermal: allow u8500-thermal driver to be a module
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 16:44:12 +0000 (17:44 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 9 Feb 2016 22:18:23 +0000 (14:18 -0800)
commit26716ce124fce88f288f07738ef685d5dfe5c13f
treec77a1c23e86ba6a8657167ae9bbcfc0f0ca3ae77
parent4d2f1794c07aae55b8f25f4d8aebcafc0d3e501d
thermal: allow u8500-thermal driver to be a module

When the thermal subsystem is a loadable module, the u8500 driver
fails to build:

drivers/thermal/built-in.o: In function `db8500_thermal_probe':
db8500_thermal.c:(.text+0x96c): undefined reference to `thermal_zone_device_register'
drivers/thermal/built-in.o: In function `db8500_thermal_work':
db8500_thermal.c:(.text+0xab4): undefined reference to `thermal_zone_device_update'

This changes the symbol to a tristate, so Kconfig can track the
dependency correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/mfd/db8500-prcmu.c
drivers/thermal/Kconfig