linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tinydrm: repaper: add CONFIG_THERMAL dependency
@ 2017-07-27  9:58 Arnd Bergmann
  2017-07-29 12:43 ` Noralf Trønnes
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-07-27  9:58 UTC (permalink / raw)
  To: David Airlie, Noralf Trønnes
  Cc: Arnd Bergmann, Thierry Reding, Daniel Vetter, dri-devel, linux-kernel

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>
---
 drivers/gpu/drm/tinydrm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig
index 9596e447f877..f17c3caceab2 100644
--- a/drivers/gpu/drm/tinydrm/Kconfig
+++ b/drivers/gpu/drm/tinydrm/Kconfig
@@ -23,6 +23,7 @@ config TINYDRM_MI0283QT
 config TINYDRM_REPAPER
 	tristate "DRM support for Pervasive Displays RePaper panels (V231)"
 	depends on DRM_TINYDRM && SPI
+	depends on THERMAL || !THERMAL
 	help
 	  DRM driver for the following Pervasive Displays panels:
 	  1.44" TFT EPD Panel (E1144CS021)
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tinydrm: repaper: add CONFIG_THERMAL dependency
  2017-07-27  9:58 [PATCH] tinydrm: repaper: add CONFIG_THERMAL dependency Arnd Bergmann
@ 2017-07-29 12:43 ` Noralf Trønnes
  0 siblings, 0 replies; 2+ messages in thread
From: Noralf Trønnes @ 2017-07-29 12:43 UTC (permalink / raw)
  To: Arnd Bergmann, David Airlie
  Cc: Thierry Reding, Daniel Vetter, dri-devel, linux-kernel


Den 27.07.2017 11.58, skrev Arnd Bergmann:
> 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>
> ---

Thanks for fixing this, applied to drm-misc.

Noralf.

>   drivers/gpu/drm/tinydrm/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig
> index 9596e447f877..f17c3caceab2 100644
> --- a/drivers/gpu/drm/tinydrm/Kconfig
> +++ b/drivers/gpu/drm/tinydrm/Kconfig
> @@ -23,6 +23,7 @@ config TINYDRM_MI0283QT
>   config TINYDRM_REPAPER
>   	tristate "DRM support for Pervasive Displays RePaper panels (V231)"
>   	depends on DRM_TINYDRM && SPI
> +	depends on THERMAL || !THERMAL
>   	help
>   	  DRM driver for the following Pervasive Displays panels:
>   	  1.44" TFT EPD Panel (E1144CS021)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-29 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-27  9:58 [PATCH] tinydrm: repaper: add CONFIG_THERMAL dependency Arnd Bergmann
2017-07-29 12:43 ` Noralf Trønnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).