Skip to content

Commit 8bb12ad

Browse files
niklas88alexandrebelloni
authored andcommitted
rtc: add HAS_IOPORT dependencies
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends not being declared. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Acked-by: Maciej W. Rozycki <macro@orcam.me.uk> Link: https://lore.kernel.org/r/20230522105049.1467313-31-schnelle@linux.ibm.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 31b0cec commit 8bb12ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/rtc/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ comment "Platform RTC drivers"
956956
config RTC_DRV_CMOS
957957
tristate "PC-style 'CMOS'"
958958
depends on X86 || ARM || PPC || MIPS || SPARC64
959+
depends on HAS_IOPORT || MACH_DECSTATION
959960
default y if X86
960961
select RTC_MC146818_LIB
961962
help
@@ -976,6 +977,7 @@ config RTC_DRV_CMOS
976977
config RTC_DRV_ALPHA
977978
bool "Alpha PC-style CMOS"
978979
depends on ALPHA
980+
depends on HAS_IOPORT
979981
select RTC_MC146818_LIB
980982
default y
981983
help
@@ -1193,7 +1195,7 @@ config RTC_DRV_MSM6242
11931195

11941196
config RTC_DRV_BQ4802
11951197
tristate "TI BQ4802"
1196-
depends on HAS_IOMEM
1198+
depends on HAS_IOMEM && HAS_IOPORT
11971199
help
11981200
If you say Y here you will get support for the TI
11991201
BQ4802 RTC chip.

0 commit comments

Comments
 (0)