From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753795AbbA2Hu5 (ORCPT ); Thu, 29 Jan 2015 02:50:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53834 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753478AbbA2Huz (ORCPT ); Thu, 29 Jan 2015 02:50:55 -0500 Message-ID: <54C9E63A.6020806@redhat.com> Date: Thu, 29 Jan 2015 08:50:18 +0100 From: Hans de Goede User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Arnd Bergmann , Dmitry Torokhov CC: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai Subject: Re: [PATCH] Input: sun4i-ts: add thermal driver dependency References: <2265502.1m7jYBaqyh@wuerfel> In-Reply-To: <2265502.1m7jYBaqyh@wuerfel> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 28-01-15 16:17, Arnd Bergmann wrote: > The sun4i-ts driver has had a dependency on the thermal code > since it was first merged, The "since it was first merged bit" is not true, this is caused by recent changes by ChenYu. Other then that no objections from me against the proposed fix. Regards, Hans but this is not currently enforced > in Kconfig, so in some randconfig builds we get > > drivers/built-in.o: In function `sun4i_ts_remove': > :(.text+0x2376f4): undefined reference to `thermal_zone_of_sensor_unregister' > drivers/built-in.o: In function `sun4i_ts_probe': > :(.text+0x237a94): undefined reference to `thermal_zone_of_sensor_register' > :(.text+0x237c00): undefined reference to `thermal_zone_of_sensor_unregister' > > We need the dependency on THERMAL in order to ensure that this > driver becomes a loadable module if the thermal support itself > is modular, while the dependency on THERMAL_OF is a runtime dependency > and the driver will still build but not work if it is missing. > > Signed-off-by: Arnd Bergmann > Fixes: 6decea7c5438e2 ("Input: add driver for Allwinner sunxi SoC's rtp controller") > > diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig > index 58917525126e..e2447f0063b7 100644 > --- a/drivers/input/touchscreen/Kconfig > +++ b/drivers/input/touchscreen/Kconfig > @@ -943,6 +943,8 @@ config TOUCHSCREEN_SUN4I > tristate "Allwinner sun4i resistive touchscreen controller support" > depends on ARCH_SUNXI || COMPILE_TEST > depends on HWMON > + depends on THERMAL > + depends on THERMAL_OF || COMPILE_TEST > help > This selects support for the resistive touchscreen controller > found on Allwinner sunxi SoCs. >