Skip to content

Commit a687a53

Browse files
committed
treewide: simplify Kconfig dependencies for removed archs
A lot of Kconfig symbols have architecture specific dependencies. In those cases that depend on architectures we have already removed, they can be omitted. Acked-by: Kalle Valo <kvalo@codeaurora.org> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 79375ea commit a687a53

23 files changed

Lines changed: 31 additions & 77 deletions

File tree

‎block/bounce.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
static struct bio_set *bounce_bio_set, *bounce_bio_split;
3232
static mempool_t *page_pool, *isa_page_pool;
3333

34-
#if defined(CONFIG_HIGHMEM) || defined(CONFIG_NEED_BOUNCE_POOL)
34+
#if defined(CONFIG_HIGHMEM)
3535
static __init int init_emergency_pool(void)
3636
{
3737
#if defined(CONFIG_HIGHMEM) && !defined(CONFIG_MEMORY_HOTPLUG)

‎drivers/ide/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ comment "IDE chipset support/bugfixes"
200200

201201
config IDE_GENERIC
202202
tristate "generic/default IDE chipset support"
203-
depends on ALPHA || X86 || IA64 || M32R || MIPS || ARCH_RPC
203+
depends on ALPHA || X86 || IA64 || MIPS || ARCH_RPC
204204
default ARM && ARCH_RPC
205205
help
206206
This is the generic IDE driver. This driver attaches to the

‎drivers/ide/ide-generic.c‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@
1313
#include <linux/ide.h>
1414
#include <linux/pci_ids.h>
1515

16-
/* FIXME: convert arm and m32r to use ide_platform host driver */
16+
/* FIXME: convert arm to use ide_platform host driver */
1717
#ifdef CONFIG_ARM
1818
#include <asm/irq.h>
1919
#endif
20-
#ifdef CONFIG_M32R
21-
#include <asm/m32r.h>
22-
#endif
2320

2421
#define DRV_NAME "ide_generic"
2522

@@ -35,13 +32,6 @@ static const struct ide_port_info ide_generic_port_info = {
3532
#ifdef CONFIG_ARM
3633
static const u16 legacy_bases[] = { 0x1f0 };
3734
static const int legacy_irqs[] = { IRQ_HARDDISK };
38-
#elif defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_MAPPI2) || \
39-
defined(CONFIG_PLAT_OPSPUT)
40-
static const u16 legacy_bases[] = { 0x1f0 };
41-
static const int legacy_irqs[] = { PLD_IRQ_CFIREQ };
42-
#elif defined(CONFIG_PLAT_MAPPI3)
43-
static const u16 legacy_bases[] = { 0x1f0, 0x170 };
44-
static const int legacy_irqs[] = { PLD_IRQ_CFIREQ, PLD_IRQ_IDEIREQ };
4535
#elif defined(CONFIG_ALPHA)
4636
static const u16 legacy_bases[] = { 0x1f0, 0x170, 0x1e8, 0x168 };
4737
static const int legacy_irqs[] = { 14, 15, 11, 10 };

‎drivers/input/joystick/analog.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static unsigned int get_time_pit(void)
163163
#define GET_TIME(x) do { x = (unsigned int)rdtsc(); } while (0)
164164
#define DELTA(x,y) ((y)-(x))
165165
#define TIME_NAME "TSC"
166-
#elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) || defined(CONFIG_TILE)
166+
#elif defined(__alpha__) || defined(CONFIG_ARM) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV)
167167
#define GET_TIME(x) do { x = get_cycles(); } while (0)
168168
#define DELTA(x,y) ((y)-(x))
169169
#define TIME_NAME "get_cycles"

‎drivers/isdn/hisax/Kconfig‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ config HISAX_16_3
109109

110110
config HISAX_TELESPCI
111111
bool "Teles PCI"
112-
depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN)))
112+
depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN)))
113113
help
114114
This enables HiSax support for the Teles PCI.
115115
See <file:Documentation/isdn/README.HiSax> on how to configure it.
@@ -237,7 +237,7 @@ config HISAX_MIC
237237

238238
config HISAX_NETJET
239239
bool "NETjet card"
240-
depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE))
240+
depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE))
241241
depends on VIRT_TO_BUS
242242
help
243243
This enables HiSax support for the NetJet from Traverse
@@ -249,7 +249,7 @@ config HISAX_NETJET
249249

250250
config HISAX_NETJET_U
251251
bool "NETspider U card"
252-
depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE))
252+
depends on PCI && (BROKEN || !(PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN) || MICROBLAZE))
253253
depends on VIRT_TO_BUS
254254
help
255255
This enables HiSax support for the Netspider U interface ISDN card
@@ -318,7 +318,7 @@ config HISAX_GAZEL
318318

319319
config HISAX_HFC_PCI
320320
bool "HFC PCI-Bus cards"
321-
depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN)))
321+
depends on PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN)))
322322
help
323323
This enables HiSax support for the HFC-S PCI 2BDS0 based cards.
324324

@@ -343,7 +343,7 @@ config HISAX_HFC_SX
343343

344344
config HISAX_ENTERNOW_PCI
345345
bool "Formula-n enter:now PCI card"
346-
depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || FRV || (XTENSA && !CPU_LITTLE_ENDIAN)))
346+
depends on HISAX_NETJET && PCI && (BROKEN || !(SPARC || PPC || PARISC || M68K || (MIPS && !CPU_LITTLE_ENDIAN) || (XTENSA && !CPU_LITTLE_ENDIAN)))
347347
help
348348
This enables HiSax support for the Formula-n enter:now PCI
349349
ISDN card.

‎drivers/net/ethernet/davicom/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
config DM9000
66
tristate "DM9000 support"
7-
depends on ARM || BLACKFIN || MIPS || COLDFIRE || NIOS2
7+
depends on ARM || MIPS || COLDFIRE || NIOS2
88
select CRC32
99
select MII
1010
---help---

‎drivers/net/ethernet/smsc/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
config NET_VENDOR_SMSC
66
bool "SMC (SMSC)/Western Digital devices"
77
default y
8-
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
9-
ISA || M32R || MAC || MIPS || NIOS2 || PCI || \
8+
depends on ARM || ARM64 || ATARI_ETHERNAT || COLDFIRE || \
9+
ISA || MAC || MIPS || NIOS2 || PCI || \
1010
PCMCIA || SUPERH || XTENSA || H8300
1111
---help---
1212
If you have a network (Ethernet) card belonging to this class, say Y.
@@ -37,7 +37,7 @@ config SMC91X
3737
select CRC32
3838
select MII
3939
depends on !OF || GPIOLIB
40-
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
40+
depends on ARM || ARM64 || ATARI_ETHERNAT || COLDFIRE || \
4141
M32R || MIPS || NIOS2 || SUPERH || XTENSA || H8300
4242
---help---
4343
This is a driver for SMC's 91x series of Ethernet chipsets,

‎drivers/net/wireless/cisco/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ config AIRO
3333

3434
config AIRO_CS
3535
tristate "Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards"
36-
depends on CFG80211 && PCMCIA && (BROKEN || !M32R)
36+
depends on CFG80211 && PCMCIA
3737
select WIRELESS_EXT
3838
select WEXT_SPY
3939
select WEXT_PRIV

‎drivers/pwm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config PWM_AB8500
4343

4444
config PWM_ATMEL
4545
tristate "Atmel PWM support"
46-
depends on ARCH_AT91 || AVR32
46+
depends on ARCH_AT91
4747
help
4848
Generic PWM framework driver for Atmel SoC.
4949

‎drivers/rtc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ comment "Platform RTC drivers"
868868

869869
config RTC_DRV_CMOS
870870
tristate "PC-style 'CMOS'"
871-
depends on X86 || ARM || M32R || PPC || MIPS || SPARC64
871+
depends on X86 || ARM || PPC || MIPS || SPARC64
872872
default y if X86
873873
select RTC_MC146818_LIB
874874
help

0 commit comments

Comments
 (0)