diff options
| -rw-r--r-- | arch/mips/txx9/generic/setup.c | 12 | ||||
| -rw-r--r-- | arch/mips/txx9/generic/setup_tx4939.c | 2 | ||||
| -rw-r--r-- | arch/mips/txx9/rbtx4939/setup.c | 11 |
3 files changed, 11 insertions, 14 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index ae77a7916c03..560fe8991753 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
| @@ -632,7 +632,7 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr, | |||
| 632 | unsigned long size, | 632 | unsigned long size, |
| 633 | const struct physmap_flash_data *pdata) | 633 | const struct physmap_flash_data *pdata) |
| 634 | { | 634 | { |
| 635 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 635 | #if IS_ENABLED(CONFIG_MTD_PHYSMAP) |
| 636 | struct resource res = { | 636 | struct resource res = { |
| 637 | .start = addr, | 637 | .start = addr, |
| 638 | .end = addr + size - 1, | 638 | .end = addr + size - 1, |
| @@ -670,8 +670,7 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr, | |||
| 670 | void __init txx9_ndfmc_init(unsigned long baseaddr, | 670 | void __init txx9_ndfmc_init(unsigned long baseaddr, |
| 671 | const struct txx9ndfmc_platform_data *pdata) | 671 | const struct txx9ndfmc_platform_data *pdata) |
| 672 | { | 672 | { |
| 673 | #if defined(CONFIG_MTD_NAND_TXX9NDFMC) || \ | 673 | #if IS_ENABLED(CONFIG_MTD_NAND_TXX9NDFMC) |
| 674 | defined(CONFIG_MTD_NAND_TXX9NDFMC_MODULE) | ||
| 675 | struct resource res = { | 674 | struct resource res = { |
| 676 | .start = baseaddr, | 675 | .start = baseaddr, |
| 677 | .end = baseaddr + 0x1000 - 1, | 676 | .end = baseaddr + 0x1000 - 1, |
| @@ -687,7 +686,7 @@ void __init txx9_ndfmc_init(unsigned long baseaddr, | |||
| 687 | #endif | 686 | #endif |
| 688 | } | 687 | } |
| 689 | 688 | ||
| 690 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) | 689 | #if IS_ENABLED(CONFIG_LEDS_GPIO) |
| 691 | static DEFINE_SPINLOCK(txx9_iocled_lock); | 690 | static DEFINE_SPINLOCK(txx9_iocled_lock); |
| 692 | 691 | ||
| 693 | #define TXX9_IOCLED_MAXLEDS 8 | 692 | #define TXX9_IOCLED_MAXLEDS 8 |
| @@ -810,7 +809,7 @@ void __init txx9_iocled_init(unsigned long baseaddr, | |||
| 810 | void __init txx9_dmac_init(int id, unsigned long baseaddr, int irq, | 809 | void __init txx9_dmac_init(int id, unsigned long baseaddr, int irq, |
| 811 | const struct txx9dmac_platform_data *pdata) | 810 | const struct txx9dmac_platform_data *pdata) |
| 812 | { | 811 | { |
| 813 | #if defined(CONFIG_TXX9_DMAC) || defined(CONFIG_TXX9_DMAC_MODULE) | 812 | #if IS_ENABLED(CONFIG_TXX9_DMAC) |
| 814 | struct resource res[] = { | 813 | struct resource res[] = { |
| 815 | { | 814 | { |
| 816 | .start = baseaddr, | 815 | .start = baseaddr, |
| @@ -866,8 +865,7 @@ void __init txx9_aclc_init(unsigned long baseaddr, int irq, | |||
| 866 | unsigned int dma_chan_out, | 865 | unsigned int dma_chan_out, |
| 867 | unsigned int dma_chan_in) | 866 | unsigned int dma_chan_in) |
| 868 | { | 867 | { |
| 869 | #if defined(CONFIG_SND_SOC_TXX9ACLC) || \ | 868 | #if IS_ENABLED(CONFIG_SND_SOC_TXX9ACLC) |
| 870 | defined(CONFIG_SND_SOC_TXX9ACLC_MODULE) | ||
| 871 | unsigned int dma_base = dmac_id * TXX9_DMA_MAX_NR_CHANNELS; | 869 | unsigned int dma_base = dmac_id * TXX9_DMA_MAX_NR_CHANNELS; |
| 872 | struct resource res[] = { | 870 | struct resource res[] = { |
| 873 | { | 871 | { |
diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index 6567895d1f59..5ff7a9584daf 100644 --- a/arch/mips/txx9/generic/setup_tx4939.c +++ b/arch/mips/txx9/generic/setup_tx4939.c | |||
| @@ -317,7 +317,7 @@ void __init tx4939_sio_init(unsigned int sclk, unsigned int cts_mask) | |||
| 317 | } | 317 | } |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | #if defined(CONFIG_TC35815) || defined(CONFIG_TC35815_MODULE) | 320 | #if IS_ENABLED(CONFIG_TC35815) |
| 321 | static u32 tx4939_get_eth_speed(struct net_device *dev) | 321 | static u32 tx4939_get_eth_speed(struct net_device *dev) |
| 322 | { | 322 | { |
| 323 | struct ethtool_cmd cmd; | 323 | struct ethtool_cmd cmd; |
diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/setup.c index 2ad8973ba13d..e15641d93092 100644 --- a/arch/mips/txx9/rbtx4939/setup.c +++ b/arch/mips/txx9/rbtx4939/setup.c | |||
| @@ -40,8 +40,7 @@ static void __init rbtx4939_time_init(void) | |||
| 40 | tx4939_time_init(0); | 40 | tx4939_time_init(0); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | #if defined(__BIG_ENDIAN) && \ | 43 | #if defined(__BIG_ENDIAN) && IS_ENABLED(CONFIG_SMC91X) |
| 44 | (defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)) | ||
| 45 | #define HAVE_RBTX4939_IOSWAB | 44 | #define HAVE_RBTX4939_IOSWAB |
| 46 | #define IS_CE1_ADDR(addr) \ | 45 | #define IS_CE1_ADDR(addr) \ |
| 47 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) | 46 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) |
| @@ -187,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void) | |||
| 187 | 186 | ||
| 188 | #define RBTX4939_MAX_7SEGLEDS 8 | 187 | #define RBTX4939_MAX_7SEGLEDS 8 |
| 189 | 188 | ||
| 190 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 189 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
| 191 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; | 190 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; |
| 192 | struct rbtx4939_led_data { | 191 | struct rbtx4939_led_data { |
| 193 | struct led_classdev cdev; | 192 | struct led_classdev cdev; |
| @@ -263,7 +262,7 @@ static inline void rbtx4939_led_setup(void) | |||
| 263 | 262 | ||
| 264 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | 263 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) |
| 265 | { | 264 | { |
| 266 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 265 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
| 267 | unsigned long flags; | 266 | unsigned long flags; |
| 268 | local_irq_save(flags); | 267 | local_irq_save(flags); |
| 269 | /* bit7: reserved for LED class */ | 268 | /* bit7: reserved for LED class */ |
| @@ -287,7 +286,7 @@ static void rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | |||
| 287 | __rbtx4939_7segled_putc(pos, val); | 286 | __rbtx4939_7segled_putc(pos, val); |
| 288 | } | 287 | } |
| 289 | 288 | ||
| 290 | #if defined(CONFIG_MTD_RBTX4939) || defined(CONFIG_MTD_RBTX4939_MODULE) | 289 | #if IS_ENABLED(CONFIG_MTD_RBTX4939) |
| 291 | /* special mapping for boot rom */ | 290 | /* special mapping for boot rom */ |
| 292 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) | 291 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) |
| 293 | { | 292 | { |
| @@ -463,7 +462,7 @@ static void __init rbtx4939_device_init(void) | |||
| 463 | .flags = SMC91X_USE_16BIT, | 462 | .flags = SMC91X_USE_16BIT, |
| 464 | }; | 463 | }; |
| 465 | struct platform_device *pdev; | 464 | struct platform_device *pdev; |
| 466 | #if defined(CONFIG_TC35815) || defined(CONFIG_TC35815_MODULE) | 465 | #if IS_ENABLED(CONFIG_TC35815) |
| 467 | int i, j; | 466 | int i, j; |
| 468 | unsigned char ethaddr[2][6]; | 467 | unsigned char ethaddr[2][6]; |
| 469 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; | 468 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; |
