]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: goldfish: allow building on more than MIPS
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:34:15 +0000 (13:34 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:08 +0000 (10:07 +0200)
Goldfish can be ARM or x86, allow building the driver for more than just
MIPS.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-goldfish.c

index a71734c416939354129253af00090975ff0f1b5e..805e4ace30caad458f9e8c25e6c360c788bfc9c4 100644 (file)
@@ -1857,7 +1857,8 @@ config RTC_DRV_HID_SENSOR_TIME
 
 config RTC_DRV_GOLDFISH
        tristate "Goldfish Real Time Clock"
-       depends on MIPS && (GOLDFISH || COMPILE_TEST)
+       depends on OF && HAS_IOMEM
+       depends on GOLDFISH || COMPILE_TEST
        help
          Say yes to enable RTC driver for the Goldfish based virtual platform.
 
index 23301e15992c1af063df514af6ad54445e3d7bf1..3fbd2715560ec18efeb20b8c343c024c25170b79 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <linux/io.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/rtc.h>