[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 3 Mar 2016 20:49:53 +0900
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Zhang Rui <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Lukasz Majewski <l.majewski@...sung.com>,
Linux PM list <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-samsung-soc@...r.kernel.org"
<linux-samsung-soc@...r.kernel.org>,
Krzysztof Kozlowski <k.kozlowski.k@...il.com>
Subject: Re: [PATCH v2] thermal: Fix build error of missing
devm_ioremap_resource on UM
2016-03-03 18:01 GMT+09:00 Geert Uytterhoeven <geert@...ux-m68k.org>:
>
> Hi Krzysztof,
>
> On Thu, Mar 3, 2016 at 9:44 AM, Krzysztof Kozlowski
> <k.kozlowski@...sung.com> wrote:
> > --- a/drivers/thermal/Kconfig
> > +++ b/drivers/thermal/Kconfig
> > @@ -177,7 +177,7 @@ config THERMAL_EMULATION
> >
> > config HISI_THERMAL
> > tristate "Hisilicon thermal driver"
> > - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
> > + depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST && HAS_IOMEM
>
> I think these are easier to read and maintain if you split hard and soft
> dependencies, e.g.
>
> depends on HAS_IOMEM
> depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST
Indeed this looks more readable but the HAS_IOMEM becomes a missing
dependency only for COMPILE_TEST. Usually it is included in the
architecture.
None of the approaches look perfect to me...
Thanks for feedback!
Best regards,
Krzysztof
Powered by blists - more mailing lists