lkml.org 
[lkml]   [2021]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.11 410/775] rtc: zynqmp: depend on HAS_IOMEM
    Date
    From: David Gow <davidgow@google.com>

    [ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ]

    The Xilinx zynqmp RTC driver makes use of IOMEM functions like
    devm_platform_ioremap_resource(), which are only available if
    CONFIG_HAS_IOMEM is defined.

    This causes the driver not to be enable under make ARCH=um allyesconfig,
    even though it won't build.

    By adding a dependency on HAS_IOMEM, the driver will not be enabled on
    architectures which don't support it.

    Fixes: 09ef18bcd5ac ("rtc: use devm_platform_ioremap_resource() to simplify code")
    Signed-off-by: David Gow <davidgow@google.com>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Link: https://lore.kernel.org/r/20210127035146.1523286-1-davidgow@google.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/rtc/Kconfig | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
    index e4bef40831c75..4e2b3a175607b 100644
    --- a/drivers/rtc/Kconfig
    +++ b/drivers/rtc/Kconfig
    @@ -1301,7 +1301,7 @@ config RTC_DRV_OPAL

    config RTC_DRV_ZYNQMP
    tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
    - depends on OF
    + depends on OF && HAS_IOMEM
    help
    If you say yes here you get support for the RTC controller found on
    Xilinx Zynq Ultrascale+ MPSoC.
    --
    2.27.0


    \
     
     \ /
      Last update: 2021-03-02 05:11    [W:3.009 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site