tinydrm: repaper: add CONFIG_THERMAL dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 09:58:58 +0000 (11:58 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Sat, 29 Jul 2017 12:41:39 +0000 (14:41 +0200)
commit8312a3fe84b96e30a010fa20f933606d976ac002
treeac55adf74445839effad99b2171875d339d62531
parentd6cedc11c405f2c139592c290742b34d47786f3e
tinydrm: repaper: add CONFIG_THERMAL dependency

The new RePaper driver uses the thermal subsystem, and fails to link
when it is built-in but thermal is a loadable module:

drivers/gpu/drm/tinydrm/repaper.o: In function `repaper_probe':
repaper.c:(.text+0x540): undefined reference to `thermal_zone_get_zone_by_name'
drivers/gpu/drm/tinydrm/repaper.o: In function `repaper_fb_dirty':
repaper.c:(.text+0xff4): undefined reference to `thermal_zone_get_temp'

This adds another Kconfig dependency to prevent the broken configuration,
forcing repaper to be a module too.

Fixes: 3589211e9b03 ("drm/tinydrm: Add RePaper e-ink driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170727100004.300665-1-arnd@arndb.de
drivers/gpu/drm/tinydrm/Kconfig