]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: fieldbus: Fix build error without CONFIG_REGMAP_MMIO
authorYueHaibing <yuehaibing@huawei.com>
Tue, 28 May 2019 14:29:12 +0000 (22:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 14:10:33 +0000 (16:10 +0200)
Fix gcc build error while CONFIG_REGMAP_MMIO is not set

drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
arcx-anybus.c: undefined reference to `__devm_regmap_init_mmio_clk'

Select REGMAP_MMIO to fix it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 2411a336c8ce ("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/anybuss/Kconfig

index 8bc3d9a877432e30663a869bd90b3bba479bf37f..635a0a7b7dd29b66a010a7d767ea946b6ac865ab 100644 (file)
@@ -14,6 +14,7 @@ if HMS_ANYBUSS_BUS
 config ARCX_ANYBUS_CONTROLLER
        tristate "Arcx Anybus-S Controller"
        depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
+       select REGMAP_MMIO
        help
          Select this to get support for the Arcx Anybus controller.
          It connects to the SoC via a parallel memory bus, and