Skip to content

Commit 766c3f8

Browse files
arndbalexandrebelloni
authored andcommitted
rtc: bq4802: add sparc dependency
The added HAS_IOPORT dependency might not actually be necessary as Geert points out, but the driver is also only used on one architecture. Sparc is also a special case here since it converts port numbers into virtual addresses rather than having them mapped into a particular part of the __iomem address space, so the difference is actually not important here. Add a dependency on sparc, but allow compile-testing otherwise, to make this clearer without anyone having to spend much time modernizing the driver beyond that. Reported-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: David S. Miller <davem@davemloft.net> Link: https://lore.kernel.org/all/CAMuHMdWEx0F=fNei4Bz_JPkuvoaN-+zk08h0i8KnSi_VjO615g@mail.gmail.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230719192835.1025406-1-arnd@kernel.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 5789837 commit 766c3f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/rtc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@ config RTC_DRV_MSM6242
11961196
config RTC_DRV_BQ4802
11971197
tristate "TI BQ4802"
11981198
depends on HAS_IOMEM && HAS_IOPORT
1199+
depends on SPARC || COMPILE_TEST
11991200
help
12001201
If you say Y here you will get support for the TI
12011202
BQ4802 RTC chip.

0 commit comments

Comments
 (0)