Merge tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux

Pull blackfin updates from Steven Miao:
"Code cleanup, some previously ignored patches, and bug fixes"

* tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux:
blackfin: cleanup board files
bf609: clock: drop unused clock bit set/clear functions
Blackfin: bf537: rename "CONFIG_ADT75"
Blackfin: bf537: rename "CONFIG_AD7314"
Blackfin: bf537: rename ad2s120x ->ad2s1200
blackfin: bf537: fix typo "CONFIG_SND_SOC_ADV80X_MODULE"
blackfin: dma: current count mmr is read only
bfin_crc: Move architecture independant crc header file out of the blackfin folder.
bf54x: drop unuesd HOST status,control,timeout registers bit define macros
blackfin: portmux: cleanup head file
Blackfin: remove "config IP_CHECKSUM_L1"
blackfin: Remove GENERIC_GPIO config option again
blackfin:Use generic /proc/interrupts implementation
blackfin: bf60x: fix typo "CONFIG_PM_BFIN_WAKE_PA15_POL"

+1114 -1472
+1 -11
arch/blackfin/Kconfig
··· 34 34 select ARCH_WANT_IPC_PARSE_VERSION 35 35 select GENERIC_ATOMIC64 36 36 select GENERIC_IRQ_PROBE 37 + select GENERIC_IRQ_SHOW 37 38 select HAVE_NMI_WATCHDOG if NMI_WATCHDOG 38 39 select GENERIC_SMP_IDLE_THREAD 39 40 select ARCH_USES_GETTIMEOFFSET if !GENERIC_CLOCKEVENTS ··· 50 49 depends on BUG 51 50 52 51 config ZONE_DMA 53 - def_bool y 54 - 55 - config GENERIC_GPIO 56 52 def_bool y 57 53 58 54 config FORCE_MAX_ZONEORDER ··· 866 868 depends on !SMP 867 869 help 868 870 If enabled, sys_bfin_spinlock function is linked 869 - into L1 instruction memory. (less latency) 870 - 871 - config IP_CHECKSUM_L1 872 - bool "Locate IP Checksum function in L1 Memory" 873 - default n 874 - depends on !SMP 875 - help 876 - If enabled, the IP Checksum function is linked 877 871 into L1 instruction memory. (less latency) 878 872 879 873 config CACHELINE_ALIGNED_L1
-125
arch/blackfin/include/asm/bfin_crc.h
··· 1 - /* 2 - * bfin_crc.h - interface to Blackfin CRC controllers 3 - * 4 - * Copyright 2012 Analog Devices Inc. 5 - * 6 - * Licensed under the GPL-2 or later. 7 - */ 8 - 9 - #ifndef __BFIN_CRC_H__ 10 - #define __BFIN_CRC_H__ 11 - 12 - /* Function driver which use hardware crc must initialize the structure */ 13 - struct crc_info { 14 - /* Input data address */ 15 - unsigned char *in_addr; 16 - /* Output data address */ 17 - unsigned char *out_addr; 18 - /* Input or output bytes */ 19 - unsigned long datasize; 20 - union { 21 - /* CRC to compare with that of input buffer */ 22 - unsigned long crc_compare; 23 - /* Value to compare with input data */ 24 - unsigned long val_verify; 25 - /* Value to fill */ 26 - unsigned long val_fill; 27 - }; 28 - /* Value to program the 32b CRC Polynomial */ 29 - unsigned long crc_poly; 30 - union { 31 - /* CRC calculated from the input data */ 32 - unsigned long crc_result; 33 - /* First failed position to verify input data */ 34 - unsigned long pos_verify; 35 - }; 36 - /* CRC mirror flags */ 37 - unsigned int bitmirr:1; 38 - unsigned int bytmirr:1; 39 - unsigned int w16swp:1; 40 - unsigned int fdsel:1; 41 - unsigned int rsltmirr:1; 42 - unsigned int polymirr:1; 43 - unsigned int cmpmirr:1; 44 - }; 45 - 46 - /* Userspace interface */ 47 - #define CRC_IOC_MAGIC 'C' 48 - #define CRC_IOC_CALC_CRC _IOWR('C', 0x01, unsigned int) 49 - #define CRC_IOC_MEMCPY_CRC _IOWR('C', 0x02, unsigned int) 50 - #define CRC_IOC_VERIFY_VAL _IOWR('C', 0x03, unsigned int) 51 - #define CRC_IOC_FILL_VAL _IOWR('C', 0x04, unsigned int) 52 - 53 - 54 - #ifdef __KERNEL__ 55 - 56 - #include <linux/types.h> 57 - #include <linux/spinlock.h> 58 - #include <linux/miscdevice.h> 59 - 60 - struct crc_register { 61 - u32 control; 62 - u32 datacnt; 63 - u32 datacntrld; 64 - u32 __pad_1[2]; 65 - u32 compare; 66 - u32 fillval; 67 - u32 datafifo; 68 - u32 intren; 69 - u32 intrenset; 70 - u32 intrenclr; 71 - u32 poly; 72 - u32 __pad_2[4]; 73 - u32 status; 74 - u32 datacntcap; 75 - u32 __pad_3; 76 - u32 result; 77 - u32 curresult; 78 - u32 __pad_4[3]; 79 - u32 revid; 80 - }; 81 - 82 - /* CRC_STATUS Masks */ 83 - #define CMPERR 0x00000002 /* Compare error */ 84 - #define DCNTEXP 0x00000010 /* datacnt register expired */ 85 - #define IBR 0x00010000 /* Input buffer ready */ 86 - #define OBR 0x00020000 /* Output buffer ready */ 87 - #define IRR 0x00040000 /* Immediate result readt */ 88 - #define LUTDONE 0x00080000 /* Look-up table generation done */ 89 - #define FSTAT 0x00700000 /* FIFO status */ 90 - #define MAX_FIFO 4 /* Max fifo size */ 91 - 92 - /* CRC_CONTROL Masks */ 93 - #define BLKEN 0x00000001 /* Block enable */ 94 - #define OPMODE 0x000000F0 /* Operation mode */ 95 - #define OPMODE_OFFSET 4 /* Operation mode mask offset*/ 96 - #define MODE_DMACPY_CRC 1 /* MTM CRC compute and compare */ 97 - #define MODE_DATA_FILL 2 /* MTM data fill */ 98 - #define MODE_CALC_CRC 3 /* MSM CRC compute and compare */ 99 - #define MODE_DATA_VERIFY 4 /* MSM data verify */ 100 - #define AUTOCLRZ 0x00000100 /* Auto clear to zero */ 101 - #define AUTOCLRF 0x00000200 /* Auto clear to one */ 102 - #define OBRSTALL 0x00001000 /* Stall on output buffer ready */ 103 - #define IRRSTALL 0x00002000 /* Stall on immediate result ready */ 104 - #define BITMIRR 0x00010000 /* Mirror bits within each byte of 32-bit input data */ 105 - #define BITMIRR_OFFSET 16 /* Mirror bits offset */ 106 - #define BYTMIRR 0x00020000 /* Mirror bytes of 32-bit input data */ 107 - #define BYTMIRR_OFFSET 17 /* Mirror bytes offset */ 108 - #define W16SWP 0x00040000 /* Mirror uppper and lower 16-bit word of 32-bit input data */ 109 - #define W16SWP_OFFSET 18 /* Mirror 16-bit word offset */ 110 - #define FDSEL 0x00080000 /* FIFO is written after input data is mirrored */ 111 - #define FDSEL_OFFSET 19 /* Mirror FIFO offset */ 112 - #define RSLTMIRR 0x00100000 /* CRC result registers are mirrored. */ 113 - #define RSLTMIRR_OFFSET 20 /* Mirror CRC result offset. */ 114 - #define POLYMIRR 0x00200000 /* CRC poly register is mirrored. */ 115 - #define POLYMIRR_OFFSET 21 /* Mirror CRC poly offset. */ 116 - #define CMPMIRR 0x00400000 /* CRC compare register is mirrored. */ 117 - #define CMPMIRR_OFFSET 22 /* Mirror CRC compare offset. */ 118 - 119 - /* CRC_INTREN Masks */ 120 - #define CMPERRI 0x02 /* CRC_ERROR_INTR */ 121 - #define DCNTEXPI 0x10 /* CRC_STATUS_INTR */ 122 - 123 - #endif 124 - 125 - #endif
-2
arch/blackfin/include/asm/dma.h
··· 316 316 } 317 317 static inline void enable_dma(unsigned int channel) 318 318 { 319 - dma_ch[channel].regs->curr_x_count = 0; 320 - dma_ch[channel].regs->curr_y_count = 0; 321 319 dma_ch[channel].regs->cfg |= DMAEN; 322 320 } 323 321 int set_dma_callback(unsigned int channel, irq_handler_t callback, void *data);
+4 -6
arch/blackfin/include/asm/portmux.h
··· 18 18 #define P_DONTCARE 0x1000 19 19 20 20 #ifdef CONFIG_PINCTRL 21 - #include <asm/irq_handler.h> 21 + int bfin_internal_set_wake(unsigned int irq, unsigned int state); 22 22 23 23 #define gpio_pint_regs bfin_pint_regs 24 24 #define adi_internal_set_wake bfin_internal_set_wake 25 25 26 - #define peripheral_request(per, label) 0 26 + #define peripheral_request(per, label) (0) 27 27 #define peripheral_free(per) 28 - #define peripheral_request_list(per, label) \ 29 - (pdev ? (IS_ERR(devm_pinctrl_get_select_default(&pdev->dev)) \ 30 - ? -EINVAL : 0) : 0) 28 + #define peripheral_request_list(per, label) (0) 31 29 #define peripheral_free_list(per) 32 30 #else 33 31 int peripheral_request(unsigned short per, const char *label); ··· 37 39 #include <linux/err.h> 38 40 #include <linux/pinctrl/pinctrl.h> 39 41 #include <mach/portmux.h> 40 - #include <linux/gpio.h> 42 + #include <mach/gpio.h> 41 43 42 44 #ifndef P_SPORT2_TFS 43 45 #define P_SPORT2_TFS P_UNDEF
+8 -29
arch/blackfin/kernel/irqchip.c
··· 11 11 #include <linux/kallsyms.h> 12 12 #include <linux/interrupt.h> 13 13 #include <linux/irq.h> 14 + #include <linux/seq_file.h> 14 15 #include <asm/irq_handler.h> 15 16 #include <asm/trace.h> 16 17 #include <asm/pda.h> ··· 34 33 #endif 35 34 36 35 #ifdef CONFIG_PROC_FS 37 - int show_interrupts(struct seq_file *p, void *v) 36 + int arch_show_interrupts(struct seq_file *p, int prec) 38 37 { 39 - int i = *(loff_t *) v, j; 40 - struct irqaction *action; 41 - unsigned long flags; 38 + int j; 42 39 43 - if (i < NR_IRQS) { 44 - struct irq_desc *desc = irq_to_desc(i); 45 - 46 - raw_spin_lock_irqsave(&desc->lock, flags); 47 - action = desc->action; 48 - if (!action) 49 - goto skip; 50 - seq_printf(p, "%3d: ", i); 51 - for_each_online_cpu(j) 52 - seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); 53 - seq_printf(p, " %8s", irq_desc_get_chip(desc)->name); 54 - seq_printf(p, " %s", action->name); 55 - for (action = action->next; action; action = action->next) 56 - seq_printf(p, " %s", action->name); 57 - 58 - seq_putc(p, '\n'); 59 - skip: 60 - raw_spin_unlock_irqrestore(&desc->lock, flags); 61 - } else if (i == NR_IRQS) { 62 - seq_printf(p, "NMI: "); 63 - for_each_online_cpu(j) 64 - seq_printf(p, "%10u ", cpu_pda[j].__nmi_count); 65 - seq_printf(p, " CORE Non Maskable Interrupt\n"); 66 - seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count)); 67 - } 40 + seq_printf(p, "%*s: ", prec, "NMI"); 41 + for_each_online_cpu(j) 42 + seq_printf(p, "%10u ", cpu_pda[j].__nmi_count); 43 + seq_printf(p, " CORE Non Maskable Interrupt\n"); 44 + seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count)); 68 45 return 0; 69 46 } 70 47 #endif
+42 -45
arch/blackfin/mach-bf518/boards/ezbrd.c
··· 36 36 * Driver needs to know address, irq and flag pin. 37 37 */ 38 38 39 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 39 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 40 40 static struct mtd_partition ezbrd_partitions[] = { 41 41 { 42 42 .name = "bootloader(nor)", ··· 61 61 62 62 static struct resource ezbrd_flash_resource = { 63 63 .start = 0x20000000, 64 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 64 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 65 65 .end = 0x202fffff, 66 66 #else 67 67 .end = 0x203fffff, ··· 80 80 }; 81 81 #endif 82 82 83 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 83 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 84 84 static struct platform_device rtc_device = { 85 85 .name = "rtc-bfin", 86 86 .id = -1, 87 87 }; 88 88 #endif 89 89 90 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 90 + #if IS_ENABLED(CONFIG_BFIN_MAC) 91 91 #include <linux/bfin_mac.h> 92 92 static const unsigned short bfin_mac_peripherals[] = { 93 93 P_MII0_ETxD0, ··· 105 105 106 106 static struct bfin_phydev_platform_data bfin_phydev_data[] = { 107 107 { 108 - #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) 108 + #if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M) 109 109 .addr = 3, 110 110 #else 111 111 .addr = 1, ··· 119 119 .phydev_data = bfin_phydev_data, 120 120 .phy_mode = PHY_INTERFACE_MODE_MII, 121 121 .mac_peripherals = bfin_mac_peripherals, 122 - #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) 122 + #if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M) 123 123 .phy_mask = 0xfff7, /* Only probe the port phy connect to the on chip MAC */ 124 124 #endif 125 125 .vlan1_mask = 1, ··· 140 140 } 141 141 }; 142 142 143 - #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) 143 + #if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M) 144 144 static struct dsa_chip_data ksz8893m_switch_chip_data = { 145 145 .mii_bus = &bfin_mii_bus.dev, 146 146 .port_names = { ··· 165 165 #endif 166 166 #endif 167 167 168 - #if defined(CONFIG_MTD_M25P80) \ 169 - || defined(CONFIG_MTD_M25P80_MODULE) 168 + #if IS_ENABLED(CONFIG_MTD_M25P80) 170 169 static struct mtd_partition bfin_spi_flash_partitions[] = { 171 170 { 172 171 .name = "bootloader(spi)", ··· 192 193 }; 193 194 #endif 194 195 195 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 196 + #if IS_ENABLED(CONFIG_MMC_SPI) 196 197 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 197 198 .enable_dma = 0, 198 199 }; 199 200 #endif 200 201 201 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 202 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 202 203 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 203 204 .model = 7877, 204 205 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 215 216 #endif 216 217 217 218 static struct spi_board_info bfin_spi_board_info[] __initdata = { 218 - #if defined(CONFIG_MTD_M25P80) \ 219 - || defined(CONFIG_MTD_M25P80_MODULE) 219 + #if IS_ENABLED(CONFIG_MTD_M25P80) 220 220 { 221 221 /* the modalias must be the same as spi device driver name */ 222 222 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 228 230 }, 229 231 #endif 230 232 231 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 232 - #if defined(CONFIG_NET_DSA_KSZ8893M) \ 233 - || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) 233 + #if IS_ENABLED(CONFIG_BFIN_MAC) 234 + #if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M) 234 235 { 235 236 .modalias = "ksz8893m", 236 237 .max_speed_hz = 5000000, ··· 241 244 #endif 242 245 #endif 243 246 244 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 247 + #if IS_ENABLED(CONFIG_MMC_SPI) 245 248 { 246 249 .modalias = "mmc_spi", 247 250 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ ··· 251 254 .mode = SPI_MODE_3, 252 255 }, 253 256 #endif 254 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 257 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 255 258 { 256 259 .modalias = "ad7877", 257 260 .platform_data = &bfin_ad7877_ts_info, ··· 261 264 .chip_select = 2, 262 265 }, 263 266 #endif 264 - #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ 267 + #if IS_ENABLED(CONFIG_SND_SOC_WM8731) \ 265 268 && defined(CONFIG_SND_SOC_WM8731_SPI) 266 269 { 267 270 .modalias = "wm8731", ··· 271 274 .mode = SPI_MODE_0, 272 275 }, 273 276 #endif 274 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 277 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 275 278 { 276 279 .modalias = "spidev", 277 280 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 279 282 .chip_select = 1, 280 283 }, 281 284 #endif 282 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 285 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 283 286 { 284 287 .modalias = "bfin-lq035q1-spi", 285 288 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 291 294 }; 292 295 293 296 /* SPI controller data */ 294 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 297 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 295 298 /* SPI (0) */ 296 299 static struct bfin5xx_spi_master bfin_spi0_info = { 297 300 .num_chipselect = 6, ··· 363 366 }; 364 367 #endif /* spi master and devices */ 365 368 366 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 369 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 367 370 #ifdef CONFIG_SERIAL_BFIN_UART0 368 371 static struct resource bfin_uart0_resources[] = { 369 372 { ··· 462 465 #endif 463 466 #endif 464 467 465 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 468 + #if IS_ENABLED(CONFIG_BFIN_SIR) 466 469 #ifdef CONFIG_BFIN_SIR0 467 470 static struct resource bfin_sir0_resources[] = { 468 471 { ··· 517 520 #endif 518 521 #endif 519 522 520 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 523 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 521 524 static struct platform_device bfin_i2s = { 522 525 .name = "bfin-i2s", 523 526 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 525 528 }; 526 529 #endif 527 530 528 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 531 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 529 532 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 530 533 531 534 static struct resource bfin_twi0_resource[] = { ··· 553 556 #endif 554 557 555 558 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 556 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 559 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 557 560 { 558 561 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 559 562 }, 560 563 #endif 561 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 564 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 562 565 { 563 566 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 564 567 .irq = IRQ_PF8, 565 568 }, 566 569 #endif 567 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 570 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 568 571 { 569 572 I2C_BOARD_INFO("ssm2602", 0x1b), 570 573 }, 571 574 #endif 572 575 }; 573 576 574 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 577 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 575 578 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 576 579 static struct resource bfin_sport0_uart_resources[] = { 577 580 { ··· 642 645 #endif 643 646 #endif 644 647 645 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 648 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 646 649 #include <linux/input.h> 647 650 #include <linux/gpio_keys.h> 648 651 ··· 664 667 }; 665 668 #endif 666 669 667 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 670 + #if IS_ENABLED(CONFIG_SDH_BFIN) 668 671 669 672 static struct bfin_sd_host bfin_sdh_data = { 670 673 .dma_chan = CH_RSI, ··· 707 710 708 711 &bfin_dpmc, 709 712 710 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 713 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 711 714 &rtc_device, 712 715 #endif 713 716 714 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 717 + #if IS_ENABLED(CONFIG_BFIN_MAC) 715 718 &bfin_mii_bus, 716 719 &bfin_mac_device, 717 - #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) 720 + #if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M) 718 721 &ksz8893m_switch_device, 719 722 #endif 720 723 #endif 721 724 722 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 725 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 723 726 &bfin_spi0_device, 724 727 &bfin_spi1_device, 725 728 #endif 726 729 727 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 730 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 728 731 #ifdef CONFIG_SERIAL_BFIN_UART0 729 732 &bfin_uart0_device, 730 733 #endif ··· 733 736 #endif 734 737 #endif 735 738 736 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 739 + #if IS_ENABLED(CONFIG_BFIN_SIR) 737 740 #ifdef CONFIG_BFIN_SIR0 738 741 &bfin_sir0_device, 739 742 #endif ··· 742 745 #endif 743 746 #endif 744 747 745 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 748 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 746 749 &i2c_bfin_twi_device, 747 750 #endif 748 751 749 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 752 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 750 753 &bfin_i2s, 751 754 #endif 752 755 753 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 756 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 754 757 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 755 758 &bfin_sport0_uart_device, 756 759 #endif ··· 759 762 #endif 760 763 #endif 761 764 762 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 765 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 763 766 &bfin_device_gpiokeys, 764 767 #endif 765 768 766 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 769 + #if IS_ENABLED(CONFIG_SDH_BFIN) 767 770 &bf51x_sdh_device, 768 771 #endif 769 772 770 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 773 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 771 774 &ezbrd_flash_device, 772 775 #endif 773 776 }; ··· 781 784 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 782 785 /* setup BF518-EZBRD GPIO pin PG11 to AMS2, PG15 to AMS3. */ 783 786 peripheral_request(P_AMS2, "ParaFlash"); 784 - #if !defined(CONFIG_SPI_BFIN5XX) && !defined(CONFIG_SPI_BFIN5XX_MODULE) 787 + #if !IS_ENABLED(CONFIG_SPI_BFIN5XX) 785 788 peripheral_request(P_AMS3, "ParaFlash"); 786 789 #endif 787 790 return 0;
+31 -33
arch/blackfin/mach-bf518/boards/tcm-bf518.c
··· 36 36 * Driver needs to know address, irq and flag pin. 37 37 */ 38 38 39 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 39 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 40 40 static struct mtd_partition tcm_partitions[] = { 41 41 { 42 42 .name = "bootloader(nor)", ··· 73 73 }; 74 74 #endif 75 75 76 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 76 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 77 77 static struct platform_device rtc_device = { 78 78 .name = "rtc-bfin", 79 79 .id = -1, 80 80 }; 81 81 #endif 82 82 83 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 83 + #if IS_ENABLED(CONFIG_BFIN_MAC) 84 84 #include <linux/bfin_mac.h> 85 85 static const unsigned short bfin_mac_peripherals[] = P_MII0; 86 86 ··· 113 113 }; 114 114 #endif 115 115 116 - #if defined(CONFIG_MTD_M25P80) \ 117 - || defined(CONFIG_MTD_M25P80_MODULE) 116 + #if IS_ENABLED(CONFIG_MTD_M25P80) 118 117 static struct mtd_partition bfin_spi_flash_partitions[] = { 119 118 { 120 119 .name = "bootloader(spi)", ··· 140 141 }; 141 142 #endif 142 143 143 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 144 + #if IS_ENABLED(CONFIG_MMC_SPI) 144 145 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 145 146 .enable_dma = 0, 146 147 }; 147 148 #endif 148 149 149 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 150 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 150 151 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 151 152 .model = 7877, 152 153 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 163 164 #endif 164 165 165 166 static struct spi_board_info bfin_spi_board_info[] __initdata = { 166 - #if defined(CONFIG_MTD_M25P80) \ 167 - || defined(CONFIG_MTD_M25P80_MODULE) 167 + #if IS_ENABLED(CONFIG_MTD_M25P80) 168 168 { 169 169 /* the modalias must be the same as spi device driver name */ 170 170 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 176 178 }, 177 179 #endif 178 180 179 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 181 + #if IS_ENABLED(CONFIG_MMC_SPI) 180 182 { 181 183 .modalias = "mmc_spi", 182 184 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 186 188 .mode = SPI_MODE_3, 187 189 }, 188 190 #endif 189 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 191 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 190 192 { 191 193 .modalias = "ad7877", 192 194 .platform_data = &bfin_ad7877_ts_info, ··· 196 198 .chip_select = 2, 197 199 }, 198 200 #endif 199 - #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ 201 + #if IS_ENABLED(CONFIG_SND_SOC_WM8731) \ 200 202 && defined(CONFIG_SND_SOC_WM8731_SPI) 201 203 { 202 204 .modalias = "wm8731", ··· 206 208 .mode = SPI_MODE_0, 207 209 }, 208 210 #endif 209 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 211 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 210 212 { 211 213 .modalias = "spidev", 212 214 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 214 216 .chip_select = 1, 215 217 }, 216 218 #endif 217 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 219 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 218 220 { 219 221 .modalias = "bfin-lq035q1-spi", 220 222 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 226 228 }; 227 229 228 230 /* SPI controller data */ 229 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 231 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 230 232 /* SPI (0) */ 231 233 static struct bfin5xx_spi_master bfin_spi0_info = { 232 234 .num_chipselect = 6, ··· 298 300 }; 299 301 #endif /* spi master and devices */ 300 302 301 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 303 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 302 304 #ifdef CONFIG_SERIAL_BFIN_UART0 303 305 static struct resource bfin_uart0_resources[] = { 304 306 { ··· 397 399 #endif 398 400 #endif 399 401 400 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 402 + #if IS_ENABLED(CONFIG_BFIN_SIR) 401 403 #ifdef CONFIG_BFIN_SIR0 402 404 static struct resource bfin_sir0_resources[] = { 403 405 { ··· 452 454 #endif 453 455 #endif 454 456 455 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 457 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 456 458 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 457 459 458 460 static struct resource bfin_twi0_resource[] = { ··· 480 482 #endif 481 483 482 484 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 483 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 485 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 484 486 { 485 487 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 486 488 }, 487 489 #endif 488 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 490 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 489 491 { 490 492 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 491 493 .irq = IRQ_PF8, ··· 493 495 #endif 494 496 }; 495 497 496 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 498 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 497 499 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 498 500 static struct resource bfin_sport0_uart_resources[] = { 499 501 { ··· 564 566 #endif 565 567 #endif 566 568 567 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 569 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 568 570 #include <linux/input.h> 569 571 #include <linux/gpio_keys.h> 570 572 ··· 586 588 }; 587 589 #endif 588 590 589 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 591 + #if IS_ENABLED(CONFIG_SDH_BFIN) 590 592 591 593 static struct bfin_sd_host bfin_sdh_data = { 592 594 .dma_chan = CH_RSI, ··· 629 631 630 632 &bfin_dpmc, 631 633 632 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 634 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 633 635 &rtc_device, 634 636 #endif 635 637 636 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 638 + #if IS_ENABLED(CONFIG_BFIN_MAC) 637 639 &bfin_mii_bus, 638 640 &bfin_mac_device, 639 641 #endif 640 642 641 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 643 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 642 644 &bfin_spi0_device, 643 645 &bfin_spi1_device, 644 646 #endif 645 647 646 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 648 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 647 649 #ifdef CONFIG_SERIAL_BFIN_UART0 648 650 &bfin_uart0_device, 649 651 #endif ··· 652 654 #endif 653 655 #endif 654 656 655 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 657 + #if IS_ENABLED(CONFIG_BFIN_SIR) 656 658 #ifdef CONFIG_BFIN_SIR0 657 659 &bfin_sir0_device, 658 660 #endif ··· 661 663 #endif 662 664 #endif 663 665 664 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 666 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 665 667 &i2c_bfin_twi_device, 666 668 #endif 667 669 668 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 670 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 669 671 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 670 672 &bfin_sport0_uart_device, 671 673 #endif ··· 674 676 #endif 675 677 #endif 676 678 677 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 679 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 678 680 &bfin_device_gpiokeys, 679 681 #endif 680 682 681 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 683 + #if IS_ENABLED(CONFIG_SDH_BFIN) 682 684 &bf51x_sdh_device, 683 685 #endif 684 686 685 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 687 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 686 688 &tcm_flash_device, 687 689 #endif 688 690 };
+34 -37
arch/blackfin/mach-bf527/boards/ad7160eval.c
··· 37 37 * Driver needs to know address, irq and flag pin. 38 38 */ 39 39 40 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 40 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 41 41 static struct resource musb_resources[] = { 42 42 [0] = { 43 43 .start = 0xffc03800, ··· 97 97 }; 98 98 #endif 99 99 100 - #if defined(CONFIG_FB_BFIN_RA158Z) || defined(CONFIG_FB_BFIN_RA158Z_MODULE) 100 + #if IS_ENABLED(CONFIG_FB_BFIN_RA158Z) 101 101 static struct resource bf52x_ra158z_resources[] = { 102 102 { 103 103 .start = IRQ_PPI_ERROR, ··· 114 114 }; 115 115 #endif 116 116 117 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 117 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 118 118 static struct mtd_partition ad7160eval_partitions[] = { 119 119 { 120 120 .name = "bootloader(nor)", ··· 154 154 }; 155 155 #endif 156 156 157 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 157 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 158 158 static struct mtd_partition partition_info[] = { 159 159 { 160 160 .name = "linux kernel(nand)", ··· 200 200 }; 201 201 #endif 202 202 203 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 203 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 204 204 static struct platform_device rtc_device = { 205 205 .name = "rtc-bfin", 206 206 .id = -1, 207 207 }; 208 208 #endif 209 209 210 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 210 + #if IS_ENABLED(CONFIG_BFIN_MAC) 211 211 #include <linux/bfin_mac.h> 212 212 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 213 213 ··· 241 241 #endif 242 242 243 243 244 - #if defined(CONFIG_MTD_M25P80) \ 245 - || defined(CONFIG_MTD_M25P80_MODULE) 244 + #if IS_ENABLED(CONFIG_MTD_M25P80) 246 245 static struct mtd_partition bfin_spi_flash_partitions[] = { 247 246 { 248 247 .name = "bootloader(spi)", ··· 268 269 }; 269 270 #endif 270 271 271 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 272 + #if IS_ENABLED(CONFIG_MMC_SPI) 272 273 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 273 274 .enable_dma = 0, 274 275 }; 275 276 #endif 276 277 277 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 278 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 278 279 static struct platform_device bfin_i2s = { 279 280 .name = "bfin-i2s", 280 281 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 283 284 #endif 284 285 285 286 static struct spi_board_info bfin_spi_board_info[] __initdata = { 286 - #if defined(CONFIG_MTD_M25P80) \ 287 - || defined(CONFIG_MTD_M25P80_MODULE) 287 + #if IS_ENABLED(CONFIG_MTD_M25P80) 288 288 { 289 289 /* the modalias must be the same as spi device driver name */ 290 290 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 295 297 .mode = SPI_MODE_3, 296 298 }, 297 299 #endif 298 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 299 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 300 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 300 301 { 301 302 .modalias = "ad183x", 302 303 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 303 306 .chip_select = 4, 304 307 }, 305 308 #endif 306 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 309 + #if IS_ENABLED(CONFIG_MMC_SPI) 307 310 { 308 311 .modalias = "mmc_spi", 309 312 .max_speed_hz = 30000000, /* max spi clock (SCK) speed in HZ */ ··· 313 316 .mode = SPI_MODE_3, 314 317 }, 315 318 #endif 316 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 319 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 317 320 { 318 321 .modalias = "spidev", 319 322 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 323 326 #endif 324 327 }; 325 328 326 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 329 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 327 330 /* SPI controller data */ 328 331 static struct bfin5xx_spi_master bfin_spi0_info = { 329 332 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, ··· 361 364 }; 362 365 #endif /* spi master and devices */ 363 366 364 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 367 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 365 368 #ifdef CONFIG_SERIAL_BFIN_UART0 366 369 static struct resource bfin_uart0_resources[] = { 367 370 { ··· 472 475 #endif 473 476 #endif 474 477 475 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 478 + #if IS_ENABLED(CONFIG_BFIN_SIR) 476 479 #ifdef CONFIG_BFIN_SIR0 477 480 static struct resource bfin_sir0_resources[] = { 478 481 { ··· 527 530 #endif 528 531 #endif 529 532 530 - #if defined(CONFIG_TOUCHSCREEN_AD7160) || defined(CONFIG_TOUCHSCREEN_AD7160_MODULE) 533 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7160) 531 534 #include <linux/input/ad7160.h> 532 535 static const struct ad7160_platform_data bfin_ad7160_ts_info = { 533 536 .sensor_x_res = 854, ··· 557 560 }; 558 561 #endif 559 562 560 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 563 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 561 564 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 562 565 563 566 static struct resource bfin_twi0_resource[] = { ··· 585 588 #endif 586 589 587 590 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 588 - #if defined(CONFIG_TOUCHSCREEN_AD7160) || defined(CONFIG_TOUCHSCREEN_AD7160_MODULE) 591 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7160) 589 592 { 590 593 I2C_BOARD_INFO("ad7160", 0x33), 591 594 .irq = IRQ_PH1, ··· 594 597 #endif 595 598 }; 596 599 597 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 600 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 598 601 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 599 602 static struct resource bfin_sport0_uart_resources[] = { 600 603 { ··· 665 668 #endif 666 669 #endif 667 670 668 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 671 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 669 672 #include <asm/bfin_rotary.h> 670 673 671 674 static struct bfin_rotary_platform_data bfin_rotary_data = { ··· 722 725 723 726 &bfin_dpmc, 724 727 725 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 728 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 726 729 &bf5xx_nand_device, 727 730 #endif 728 731 729 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 732 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 730 733 &rtc_device, 731 734 #endif 732 735 733 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 736 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 734 737 &musb_device, 735 738 #endif 736 739 737 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 740 + #if IS_ENABLED(CONFIG_BFIN_MAC) 738 741 &bfin_mii_bus, 739 742 &bfin_mac_device, 740 743 #endif 741 744 742 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 745 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 743 746 &bfin_spi0_device, 744 747 #endif 745 748 746 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 749 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 747 750 #ifdef CONFIG_SERIAL_BFIN_UART0 748 751 &bfin_uart0_device, 749 752 #endif ··· 752 755 #endif 753 756 #endif 754 757 755 - #if defined(CONFIG_FB_BFIN_RA158Z) || defined(CONFIG_FB_BFIN_RA158Z_MODULE) 758 + #if IS_ENABLED(CONFIG_FB_BFIN_RA158Z) 756 759 &bf52x_ra158z_device, 757 760 #endif 758 761 759 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 762 + #if IS_ENABLED(CONFIG_BFIN_SIR) 760 763 #ifdef CONFIG_BFIN_SIR0 761 764 &bfin_sir0_device, 762 765 #endif ··· 765 768 #endif 766 769 #endif 767 770 768 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 771 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 769 772 &i2c_bfin_twi_device, 770 773 #endif 771 774 772 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 775 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 773 776 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 774 777 &bfin_sport0_uart_device, 775 778 #endif ··· 778 781 #endif 779 782 #endif 780 783 781 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 784 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 782 785 &bfin_rotary_device, 783 786 #endif 784 787 785 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 788 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 786 789 &ad7160eval_flash_device, 787 790 #endif 788 791 789 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 792 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 790 793 &bfin_i2s, 791 794 #endif 792 795 };
+44 -47
arch/blackfin/mach-bf527/boards/cm_bf527.c
··· 37 37 * Driver needs to know address, irq and flag pin. 38 38 */ 39 39 40 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 40 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 41 41 #include <linux/usb/isp1760.h> 42 42 static struct resource bfin_isp1760_resources[] = { 43 43 [0] = { ··· 72 72 }; 73 73 #endif 74 74 75 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 75 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 76 76 static struct resource musb_resources[] = { 77 77 [0] = { 78 78 .start = 0xffc03800, ··· 134 134 }; 135 135 #endif 136 136 137 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 137 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 138 138 static struct mtd_partition partition_info[] = { 139 139 { 140 140 .name = "linux kernel(nand)", ··· 180 180 }; 181 181 #endif 182 182 183 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 183 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 184 184 static struct resource bfin_pcmcia_cf_resources[] = { 185 185 { 186 186 .start = 0x20310000, /* IO PORT */ ··· 209 209 }; 210 210 #endif 211 211 212 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 212 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 213 213 static struct platform_device rtc_device = { 214 214 .name = "rtc-bfin", 215 215 .id = -1, 216 216 }; 217 217 #endif 218 218 219 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 219 + #if IS_ENABLED(CONFIG_SMC91X) 220 220 #include <linux/smc91x.h> 221 221 222 222 static struct smc91x_platdata smc91x_info = { ··· 249 249 }; 250 250 #endif 251 251 252 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 252 + #if IS_ENABLED(CONFIG_DM9000) 253 253 static struct resource dm9000_resources[] = { 254 254 [0] = { 255 255 .start = 0x203FB800, ··· 276 276 }; 277 277 #endif 278 278 279 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 279 + #if IS_ENABLED(CONFIG_BFIN_MAC) 280 280 #include <linux/bfin_mac.h> 281 281 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 282 282 ··· 309 309 }; 310 310 #endif 311 311 312 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 312 + #if IS_ENABLED(CONFIG_USB_NET2272) 313 313 static struct resource net2272_bfin_resources[] = { 314 314 { 315 315 .start = 0x20300000, ··· 330 330 }; 331 331 #endif 332 332 333 - #if defined(CONFIG_MTD_M25P80) \ 334 - || defined(CONFIG_MTD_M25P80_MODULE) 333 + #if IS_ENABLED(CONFIG_MTD_M25P80) 335 334 static struct mtd_partition bfin_spi_flash_partitions[] = { 336 335 { 337 336 .name = "bootloader(spi)", ··· 357 358 }; 358 359 #endif 359 360 360 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 361 + #if IS_ENABLED(CONFIG_MMC_SPI) 361 362 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 362 363 .enable_dma = 0, 363 364 }; 364 365 #endif 365 366 366 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 367 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 367 368 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 368 369 .model = 7877, 369 370 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 380 381 #endif 381 382 382 383 static struct spi_board_info bfin_spi_board_info[] __initdata = { 383 - #if defined(CONFIG_MTD_M25P80) \ 384 - || defined(CONFIG_MTD_M25P80_MODULE) 384 + #if IS_ENABLED(CONFIG_MTD_M25P80) 385 385 { 386 386 /* the modalias must be the same as spi device driver name */ 387 387 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 393 395 }, 394 396 #endif 395 397 396 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 397 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 398 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 398 399 { 399 400 .modalias = "ad183x", 400 401 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 401 404 .chip_select = 4, 402 405 }, 403 406 #endif 404 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 407 + #if IS_ENABLED(CONFIG_MMC_SPI) 405 408 { 406 409 .modalias = "mmc_spi", 407 410 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 411 414 .mode = SPI_MODE_3, 412 415 }, 413 416 #endif 414 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 417 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 415 418 { 416 419 .modalias = "ad7877", 417 420 .platform_data = &bfin_ad7877_ts_info, ··· 421 424 .chip_select = 2, 422 425 }, 423 426 #endif 424 - #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ 427 + #if IS_ENABLED(CONFIG_SND_SOC_WM8731) \ 425 428 && defined(CONFIG_SND_SOC_WM8731_SPI) 426 429 { 427 430 .modalias = "wm8731", ··· 431 434 .mode = SPI_MODE_0, 432 435 }, 433 436 #endif 434 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 437 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 435 438 { 436 439 .modalias = "spidev", 437 440 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 441 444 #endif 442 445 }; 443 446 444 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 447 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 445 448 /* SPI controller data */ 446 449 static struct bfin5xx_spi_master bfin_spi0_info = { 447 450 .num_chipselect = 8, ··· 479 482 }; 480 483 #endif /* spi master and devices */ 481 484 482 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 485 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 483 486 static struct mtd_partition cm_partitions[] = { 484 487 { 485 488 .name = "bootloader(nor)", ··· 528 531 }; 529 532 #endif 530 533 531 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 534 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 532 535 #ifdef CONFIG_SERIAL_BFIN_UART0 533 536 static struct resource bfin_uart0_resources[] = { 534 537 { ··· 639 642 #endif 640 643 #endif 641 644 642 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 645 + #if IS_ENABLED(CONFIG_BFIN_SIR) 643 646 #ifdef CONFIG_BFIN_SIR0 644 647 static struct resource bfin_sir0_resources[] = { 645 648 { ··· 694 697 #endif 695 698 #endif 696 699 697 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 700 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 698 701 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 699 702 700 703 static struct resource bfin_twi0_resource[] = { ··· 722 725 #endif 723 726 724 727 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 725 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 728 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 726 729 { 727 730 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 728 731 }, 729 732 #endif 730 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 733 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 731 734 { 732 735 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 733 736 .irq = IRQ_PF8, 734 737 }, 735 738 #endif 736 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 739 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 737 740 { 738 741 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 739 742 }, 740 743 #endif 741 744 }; 742 745 743 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 746 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 744 747 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 745 748 static struct resource bfin_sport0_uart_resources[] = { 746 749 { ··· 811 814 #endif 812 815 #endif 813 816 814 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 817 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 815 818 #include <linux/input.h> 816 819 #include <linux/gpio_keys.h> 817 820 ··· 858 861 859 862 &bfin_dpmc, 860 863 861 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 864 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 862 865 &bf5xx_nand_device, 863 866 #endif 864 867 865 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 868 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 866 869 &bfin_pcmcia_cf_device, 867 870 #endif 868 871 869 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 872 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 870 873 &rtc_device, 871 874 #endif 872 875 873 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 876 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 874 877 &bfin_isp1760_device, 875 878 #endif 876 879 877 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 880 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 878 881 &musb_device, 879 882 #endif 880 883 881 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 884 + #if IS_ENABLED(CONFIG_SMC91X) 882 885 &smc91x_device, 883 886 #endif 884 887 885 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 888 + #if IS_ENABLED(CONFIG_DM9000) 886 889 &dm9000_device, 887 890 #endif 888 891 889 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 892 + #if IS_ENABLED(CONFIG_BFIN_MAC) 890 893 &bfin_mii_bus, 891 894 &bfin_mac_device, 892 895 #endif 893 896 894 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 897 + #if IS_ENABLED(CONFIG_USB_NET2272) 895 898 &net2272_bfin_device, 896 899 #endif 897 900 898 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 901 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 899 902 &bfin_spi0_device, 900 903 #endif 901 904 902 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 905 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 903 906 #ifdef CONFIG_SERIAL_BFIN_UART0 904 907 &bfin_uart0_device, 905 908 #endif ··· 908 911 #endif 909 912 #endif 910 913 911 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 914 + #if IS_ENABLED(CONFIG_BFIN_SIR) 912 915 #ifdef CONFIG_BFIN_SIR0 913 916 &bfin_sir0_device, 914 917 #endif ··· 917 920 #endif 918 921 #endif 919 922 920 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 923 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 921 924 &i2c_bfin_twi_device, 922 925 #endif 923 926 924 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 927 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 925 928 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 926 929 &bfin_sport0_uart_device, 927 930 #endif ··· 930 933 #endif 931 934 #endif 932 935 933 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 936 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 934 937 &bfin_device_gpiokeys, 935 938 #endif 936 939 937 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 940 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 938 941 &cm_flash_device, 939 942 #endif 940 943 };
+37 -39
arch/blackfin/mach-bf527/boards/ezbrd.c
··· 36 36 * Driver needs to know address, irq and flag pin. 37 37 */ 38 38 39 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 39 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 40 40 static struct resource musb_resources[] = { 41 41 [0] = { 42 42 .start = 0xffc03800, ··· 98 98 }; 99 99 #endif 100 100 101 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 101 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 102 102 static struct mtd_partition ezbrd_partitions[] = { 103 103 { 104 104 .name = "bootloader(nor)", ··· 138 138 }; 139 139 #endif 140 140 141 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 141 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 142 142 static struct mtd_partition partition_info[] = { 143 143 { 144 144 .name = "bootloader(nand)", ··· 188 188 }; 189 189 #endif 190 190 191 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 191 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 192 192 static struct platform_device rtc_device = { 193 193 .name = "rtc-bfin", 194 194 .id = -1, ··· 196 196 #endif 197 197 198 198 199 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 199 + #if IS_ENABLED(CONFIG_BFIN_MAC) 200 200 #include <linux/bfin_mac.h> 201 201 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 202 202 ··· 229 229 }; 230 230 #endif 231 231 232 - #if defined(CONFIG_MTD_M25P80) \ 233 - || defined(CONFIG_MTD_M25P80_MODULE) 232 + #if IS_ENABLED(CONFIG_MTD_M25P80) 234 233 static struct mtd_partition bfin_spi_flash_partitions[] = { 235 234 { 236 235 .name = "bootloader(spi)", ··· 256 257 }; 257 258 #endif 258 259 259 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 260 + #if IS_ENABLED(CONFIG_MMC_SPI) 260 261 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 261 262 .enable_dma = 0, 262 263 }; 263 264 #endif 264 265 265 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 266 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 266 267 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 267 268 .model = 7877, 268 269 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 278 279 }; 279 280 #endif 280 281 281 - #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 282 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 282 283 #include <linux/spi/ad7879.h> 283 284 static const struct ad7879_platform_data bfin_ad7879_ts_info = { 284 285 .model = 7879, /* Model = AD7879 */ ··· 296 297 #endif 297 298 298 299 static struct spi_board_info bfin_spi_board_info[] __initdata = { 299 - #if defined(CONFIG_MTD_M25P80) \ 300 - || defined(CONFIG_MTD_M25P80_MODULE) 300 + #if IS_ENABLED(CONFIG_MTD_M25P80) 301 301 { 302 302 /* the modalias must be the same as spi device driver name */ 303 303 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 309 311 }, 310 312 #endif 311 313 312 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 314 + #if IS_ENABLED(CONFIG_MMC_SPI) 313 315 { 314 316 .modalias = "mmc_spi", 315 317 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ ··· 319 321 .mode = SPI_MODE_3, 320 322 }, 321 323 #endif 322 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 324 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 323 325 { 324 326 .modalias = "ad7877", 325 327 .platform_data = &bfin_ad7877_ts_info, ··· 329 331 .chip_select = 2, 330 332 }, 331 333 #endif 332 - #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) 334 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) 333 335 { 334 336 .modalias = "ad7879", 335 337 .platform_data = &bfin_ad7879_ts_info, ··· 340 342 .mode = SPI_CPHA | SPI_CPOL, 341 343 }, 342 344 #endif 343 - #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \ 345 + #if IS_ENABLED(CONFIG_SND_SOC_WM8731) \ 344 346 && defined(CONFIG_SND_SOC_WM8731_SPI) 345 347 { 346 348 .modalias = "wm8731", ··· 350 352 .mode = SPI_MODE_0, 351 353 }, 352 354 #endif 353 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 355 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 354 356 { 355 357 .modalias = "spidev", 356 358 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 358 360 .chip_select = 1, 359 361 }, 360 362 #endif 361 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 363 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 362 364 { 363 365 .modalias = "bfin-lq035q1-spi", 364 366 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 369 371 #endif 370 372 }; 371 373 372 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 374 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 373 375 /* SPI controller data */ 374 376 static struct bfin5xx_spi_master bfin_spi0_info = { 375 377 .num_chipselect = 8, ··· 407 409 }; 408 410 #endif /* spi master and devices */ 409 411 410 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 412 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 411 413 #ifdef CONFIG_SERIAL_BFIN_UART0 412 414 static struct resource bfin_uart0_resources[] = { 413 415 { ··· 518 520 #endif 519 521 #endif 520 522 521 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 523 + #if IS_ENABLED(CONFIG_BFIN_SIR) 522 524 #ifdef CONFIG_BFIN_SIR0 523 525 static struct resource bfin_sir0_resources[] = { 524 526 { ··· 573 575 #endif 574 576 #endif 575 577 576 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 578 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 577 579 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 578 580 579 581 static struct resource bfin_twi0_resource[] = { ··· 601 603 #endif 602 604 603 605 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 604 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 606 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 605 607 { 606 608 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 607 609 }, 608 610 #endif 609 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 611 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 610 612 { 611 613 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 612 614 .irq = IRQ_PF8, ··· 614 616 #endif 615 617 }; 616 618 617 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 619 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 618 620 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 619 621 static struct resource bfin_sport0_uart_resources[] = { 620 622 { ··· 685 687 #endif 686 688 #endif 687 689 688 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 690 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 689 691 #include <linux/input.h> 690 692 #include <linux/gpio_keys.h> 691 693 ··· 729 731 }, 730 732 }; 731 733 732 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 734 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 733 735 #include <asm/bfin-lq035q1.h> 734 736 735 737 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { ··· 762 764 763 765 &bfin_dpmc, 764 766 765 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 767 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 766 768 &bf5xx_nand_device, 767 769 #endif 768 770 769 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 771 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 770 772 &rtc_device, 771 773 #endif 772 774 773 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 775 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 774 776 &musb_device, 775 777 #endif 776 778 777 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 779 + #if IS_ENABLED(CONFIG_BFIN_MAC) 778 780 &bfin_mii_bus, 779 781 &bfin_mac_device, 780 782 #endif 781 783 782 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 784 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 783 785 &bfin_spi0_device, 784 786 #endif 785 787 786 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 788 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 787 789 #ifdef CONFIG_SERIAL_BFIN_UART0 788 790 &bfin_uart0_device, 789 791 #endif ··· 792 794 #endif 793 795 #endif 794 796 795 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 797 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 796 798 &bfin_lq035q1_device, 797 799 #endif 798 800 799 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 801 + #if IS_ENABLED(CONFIG_BFIN_SIR) 800 802 #ifdef CONFIG_BFIN_SIR0 801 803 &bfin_sir0_device, 802 804 #endif ··· 805 807 #endif 806 808 #endif 807 809 808 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 810 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 809 811 &i2c_bfin_twi_device, 810 812 #endif 811 813 812 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 814 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 813 815 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 814 816 &bfin_sport0_uart_device, 815 817 #endif ··· 818 820 #endif 819 821 #endif 820 822 821 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 823 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 822 824 &bfin_device_gpiokeys, 823 825 #endif 824 826 825 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 827 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 826 828 &ezbrd_flash_device, 827 829 #endif 828 830 };
+67 -72
arch/blackfin/mach-bf527/boards/ezkit.c
··· 42 42 * Driver needs to know address, irq and flag pin. 43 43 */ 44 44 45 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 45 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 46 46 #include <linux/usb/isp1760.h> 47 47 static struct resource bfin_isp1760_resources[] = { 48 48 [0] = { ··· 77 77 }; 78 78 #endif 79 79 80 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 80 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 81 81 static struct resource musb_resources[] = { 82 82 [0] = { 83 83 .start = 0xffc03800, ··· 139 139 }; 140 140 #endif 141 141 142 - #if defined(CONFIG_FB_BFIN_T350MCQB) || defined(CONFIG_FB_BFIN_T350MCQB_MODULE) 142 + #if IS_ENABLED(CONFIG_FB_BFIN_T350MCQB) 143 143 144 144 static struct resource bf52x_t350mcqb_resources[] = { 145 145 { ··· 157 157 }; 158 158 #endif 159 159 160 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 160 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 161 161 #include <asm/bfin-lq035q1.h> 162 162 163 163 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { ··· 184 184 }; 185 185 #endif 186 186 187 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 187 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 188 188 static struct mtd_partition ezkit_partitions[] = { 189 189 { 190 190 .name = "bootloader(nor)", ··· 224 224 }; 225 225 #endif 226 226 227 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 227 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 228 228 static struct mtd_partition partition_info[] = { 229 229 { 230 230 .name = "bootloader(nand)", ··· 274 274 }; 275 275 #endif 276 276 277 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 277 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 278 278 static struct resource bfin_pcmcia_cf_resources[] = { 279 279 { 280 280 .start = 0x20310000, /* IO PORT */ ··· 303 303 }; 304 304 #endif 305 305 306 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 306 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 307 307 static struct platform_device rtc_device = { 308 308 .name = "rtc-bfin", 309 309 .id = -1, 310 310 }; 311 311 #endif 312 312 313 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 313 + #if IS_ENABLED(CONFIG_SMC91X) 314 314 #include <linux/smc91x.h> 315 315 316 316 static struct smc91x_platdata smc91x_info = { ··· 343 343 }; 344 344 #endif 345 345 346 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 346 + #if IS_ENABLED(CONFIG_DM9000) 347 347 static struct resource dm9000_resources[] = { 348 348 [0] = { 349 349 .start = 0x203FB800, ··· 370 370 }; 371 371 #endif 372 372 373 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 373 + #if IS_ENABLED(CONFIG_BFIN_MAC) 374 374 #include <linux/bfin_mac.h> 375 375 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 376 376 ··· 403 403 }; 404 404 #endif 405 405 406 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 406 + #if IS_ENABLED(CONFIG_USB_NET2272) 407 407 static struct resource net2272_bfin_resources[] = { 408 408 { 409 409 .start = 0x20300000, ··· 427 427 }; 428 428 #endif 429 429 430 - #if defined(CONFIG_MTD_M25P80) \ 431 - || defined(CONFIG_MTD_M25P80_MODULE) 430 + #if IS_ENABLED(CONFIG_MTD_M25P80) 432 431 static struct mtd_partition bfin_spi_flash_partitions[] = { 433 432 { 434 433 .name = "bootloader(spi)", ··· 454 455 }; 455 456 #endif 456 457 457 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 458 + #if IS_ENABLED(CONFIG_MMC_SPI) 458 459 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 459 460 .enable_dma = 0, 460 461 }; 461 462 #endif 462 463 463 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 464 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 464 465 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 465 466 .model = 7877, 466 467 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 476 477 }; 477 478 #endif 478 479 479 - #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 480 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 480 481 #include <linux/spi/ad7879.h> 481 482 static const struct ad7879_platform_data bfin_ad7879_ts_info = { 482 483 .model = 7879, /* Model = AD7879 */ ··· 492 493 }; 493 494 #endif 494 495 495 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 496 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 496 497 497 498 static const u16 bfin_snd_pin[][7] = { 498 499 {P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, ··· 540 541 }; 541 542 #endif 542 543 543 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 544 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 544 545 static struct platform_device bfin_i2s_pcm = { 545 546 .name = "bfin-i2s-pcm-audio", 546 547 .id = -1, 547 548 }; 548 549 #endif 549 550 550 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 551 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 551 552 static struct platform_device bfin_ac97_pcm = { 552 553 .name = "bfin-ac97-pcm-audio", 553 554 .id = -1, 554 555 }; 555 556 #endif 556 557 557 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 558 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 558 559 static struct platform_device bfin_i2s = { 559 560 .name = "bfin-i2s", 560 561 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 566 567 }; 567 568 #endif 568 569 569 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 570 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 570 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 571 571 static const char * const ad1836_link[] = { 572 572 "bfin-i2s.0", 573 573 "spi0.4", ··· 581 583 #endif 582 584 583 585 static struct spi_board_info bfin_spi_board_info[] __initdata = { 584 - #if defined(CONFIG_MTD_M25P80) \ 585 - || defined(CONFIG_MTD_M25P80_MODULE) 586 + #if IS_ENABLED(CONFIG_MTD_M25P80) 586 587 { 587 588 /* the modalias must be the same as spi device driver name */ 588 589 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 594 597 }, 595 598 #endif 596 599 597 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 598 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 600 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 599 601 { 600 602 .modalias = "ad183x", 601 603 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 604 608 .mode = SPI_MODE_3, 605 609 }, 606 610 #endif 607 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 611 + #if IS_ENABLED(CONFIG_MMC_SPI) 608 612 { 609 613 .modalias = "mmc_spi", 610 614 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 615 619 }, 616 620 #endif 617 621 618 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 622 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 619 623 { 620 624 .modalias = "ad7877", 621 625 .platform_data = &bfin_ad7877_ts_info, ··· 625 629 .chip_select = 2, 626 630 }, 627 631 #endif 628 - #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) 632 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) 629 633 { 630 634 .modalias = "ad7879", 631 635 .platform_data = &bfin_ad7879_ts_info, ··· 636 640 .mode = SPI_CPHA | SPI_CPOL, 637 641 }, 638 642 #endif 639 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 643 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 640 644 { 641 645 .modalias = "spidev", 642 646 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 644 648 .chip_select = 1, 645 649 }, 646 650 #endif 647 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 651 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 648 652 { 649 653 .modalias = "bfin-lq035q1-spi", 650 654 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 655 659 #endif 656 660 }; 657 661 658 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 662 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 659 663 /* SPI controller data */ 660 664 static struct bfin5xx_spi_master bfin_spi0_info = { 661 665 .num_chipselect = 8, ··· 693 697 }; 694 698 #endif /* spi master and devices */ 695 699 696 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 700 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 697 701 #ifdef CONFIG_SERIAL_BFIN_UART0 698 702 static struct resource bfin_uart0_resources[] = { 699 703 { ··· 804 808 #endif 805 809 #endif 806 810 807 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 811 + #if IS_ENABLED(CONFIG_BFIN_SIR) 808 812 #ifdef CONFIG_BFIN_SIR0 809 813 static struct resource bfin_sir0_resources[] = { 810 814 { ··· 859 863 #endif 860 864 #endif 861 865 862 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 866 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 863 867 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 864 868 865 869 static struct resource bfin_twi0_resource[] = { ··· 886 890 }; 887 891 #endif 888 892 889 - #if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE) 893 + #if IS_ENABLED(CONFIG_PMIC_ADP5520) 890 894 #include <linux/mfd/adp5520.h> 891 895 892 896 /* ··· 952 956 #endif 953 957 954 958 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 955 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 959 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 956 960 { 957 961 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 958 962 }, 959 963 #endif 960 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 964 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 961 965 { 962 966 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 963 967 .irq = IRQ_PF8, 964 968 }, 965 969 #endif 966 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 970 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 967 971 { 968 972 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 969 973 }, 970 974 #endif 971 - #if defined(CONFIG_TOUCHSCREEN_AD7879_I2C) || defined(CONFIG_TOUCHSCREEN_AD7879_I2C_MODULE) 975 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_I2C) 972 976 { 973 977 I2C_BOARD_INFO("ad7879", 0x2C), 974 978 .irq = IRQ_PF8, 975 979 .platform_data = (void *)&bfin_ad7879_ts_info, 976 980 }, 977 981 #endif 978 - #if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE) 982 + #if IS_ENABLED(CONFIG_PMIC_ADP5520) 979 983 { 980 984 I2C_BOARD_INFO("pmic-adp5520", 0x32), 981 985 .irq = IRQ_PF9, 982 986 .platform_data = (void *)&adp5520_pdev_data, 983 987 }, 984 988 #endif 985 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 989 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 986 990 { 987 991 I2C_BOARD_INFO("ssm2602", 0x1b), 988 992 }, 989 993 #endif 990 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 994 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 991 995 { 992 996 I2C_BOARD_INFO("ad5252", 0x2f), 993 997 }, 994 998 #endif 995 - #if defined(CONFIG_SND_SOC_ADAU1373) || defined(CONFIG_SND_SOC_ADAU1373_MODULE) 999 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1373) 996 1000 { 997 1001 I2C_BOARD_INFO("adau1373", 0x1A), 998 1002 }, 999 1003 #endif 1000 1004 }; 1001 1005 1002 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 1006 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 1003 1007 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 1004 1008 static struct resource bfin_sport0_uart_resources[] = { 1005 1009 { ··· 1070 1074 #endif 1071 1075 #endif 1072 1076 1073 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1077 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1074 1078 #include <linux/gpio_keys.h> 1075 1079 1076 1080 static struct gpio_keys_button bfin_gpio_keys_table[] = { ··· 1091 1095 }; 1092 1096 #endif 1093 1097 1094 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 1098 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 1095 1099 #include <asm/bfin_rotary.h> 1096 1100 1097 1101 static struct bfin_rotary_platform_data bfin_rotary_data = { ··· 1149 1153 1150 1154 &bfin_dpmc, 1151 1155 1152 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 1156 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 1153 1157 &bf5xx_nand_device, 1154 1158 #endif 1155 1159 1156 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 1160 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 1157 1161 &bfin_pcmcia_cf_device, 1158 1162 #endif 1159 1163 1160 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 1164 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 1161 1165 &rtc_device, 1162 1166 #endif 1163 1167 1164 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 1168 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 1165 1169 &bfin_isp1760_device, 1166 1170 #endif 1167 1171 1168 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 1172 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 1169 1173 &musb_device, 1170 1174 #endif 1171 1175 1172 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 1176 + #if IS_ENABLED(CONFIG_SMC91X) 1173 1177 &smc91x_device, 1174 1178 #endif 1175 1179 1176 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 1180 + #if IS_ENABLED(CONFIG_DM9000) 1177 1181 &dm9000_device, 1178 1182 #endif 1179 1183 1180 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 1184 + #if IS_ENABLED(CONFIG_BFIN_MAC) 1181 1185 &bfin_mii_bus, 1182 1186 &bfin_mac_device, 1183 1187 #endif 1184 1188 1185 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 1189 + #if IS_ENABLED(CONFIG_USB_NET2272) 1186 1190 &net2272_bfin_device, 1187 1191 #endif 1188 1192 1189 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 1193 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 1190 1194 &bfin_spi0_device, 1191 1195 #endif 1192 1196 1193 - #if defined(CONFIG_FB_BFIN_T350MCQB) || defined(CONFIG_FB_BFIN_T350MCQB_MODULE) 1197 + #if IS_ENABLED(CONFIG_FB_BFIN_T350MCQB) 1194 1198 &bf52x_t350mcqb_device, 1195 1199 #endif 1196 1200 1197 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 1201 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 1198 1202 &bfin_lq035q1_device, 1199 1203 #endif 1200 1204 1201 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 1205 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 1202 1206 #ifdef CONFIG_SERIAL_BFIN_UART0 1203 1207 &bfin_uart0_device, 1204 1208 #endif ··· 1207 1211 #endif 1208 1212 #endif 1209 1213 1210 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 1214 + #if IS_ENABLED(CONFIG_BFIN_SIR) 1211 1215 #ifdef CONFIG_BFIN_SIR0 1212 1216 &bfin_sir0_device, 1213 1217 #endif ··· 1216 1220 #endif 1217 1221 #endif 1218 1222 1219 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1223 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1220 1224 &i2c_bfin_twi_device, 1221 1225 #endif 1222 1226 1223 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 1227 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 1224 1228 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 1225 1229 &bfin_sport0_uart_device, 1226 1230 #endif ··· 1229 1233 #endif 1230 1234 #endif 1231 1235 1232 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1236 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1233 1237 &bfin_device_gpiokeys, 1234 1238 #endif 1235 1239 1236 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 1240 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 1237 1241 &bfin_rotary_device, 1238 1242 #endif 1239 1243 1240 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 1244 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 1241 1245 &ezkit_flash_device, 1242 1246 #endif 1243 1247 1244 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 1248 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 1245 1249 &bfin_i2s_pcm, 1246 1250 #endif 1247 1251 1248 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 1252 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 1249 1253 &bfin_ac97_pcm, 1250 1254 #endif 1251 1255 1252 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 1256 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 1253 1257 &bfin_i2s, 1254 1258 #endif 1255 1259 1256 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 1257 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 1260 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 1258 1261 &bfin_ad1836_machine, 1259 1262 #endif 1260 1263 };
+41 -50
arch/blackfin/mach-bf527/boards/tll6527m.c
··· 28 28 #include <asm/portmux.h> 29 29 #include <asm/dpmc.h> 30 30 31 - #if defined(CONFIG_TOUCHSCREEN_AD7879) \ 32 - || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 31 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 33 32 #include <linux/spi/ad7879.h> 34 33 #define LCD_BACKLIGHT_GPIO 0x40 35 34 /* TLL6527M uses TLL7UIQ35 / ADI LCD EZ Extender. AD7879 AUX GPIO is used for ··· 44 45 * Driver needs to know address, irq and flag pin. 45 46 */ 46 47 47 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 48 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 48 49 static struct resource musb_resources[] = { 49 50 [0] = { 50 51 .start = 0xffc03800, ··· 103 104 }; 104 105 #endif 105 106 106 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 107 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 107 108 #include <asm/bfin-lq035q1.h> 108 109 109 110 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { ··· 132 133 }; 133 134 #endif 134 135 135 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 136 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 136 137 static struct mtd_partition tll6527m_partitions[] = { 137 138 { 138 139 .name = "bootloader(nor)", ··· 181 182 }; 182 183 #endif 183 184 184 - #if defined(CONFIG_GPIO_DECODER) || defined(CONFIG_GPIO_DECODER_MODULE) 185 + #if IS_ENABLED(CONFIG_GPIO_DECODER) 185 186 /* An SN74LVC138A 3:8 decoder chip has been used to generate 7 augmented 186 187 * outputs used as SPI CS lines for all SPI SLAVE devices on TLL6527v1-0. 187 188 * EXP_GPIO_SPISEL_BASE is the base number for the expanded outputs being ··· 214 215 215 216 #endif 216 217 217 - #if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE) 218 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X) 218 219 #include <linux/input/adxl34x.h> 219 220 static const struct adxl34x_platform_data adxl345_info = { 220 221 .x_axis_offset = 0, ··· 249 250 }; 250 251 #endif 251 252 252 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 253 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 253 254 static struct platform_device rtc_device = { 254 255 .name = "rtc-bfin", 255 256 .id = -1, 256 257 }; 257 258 #endif 258 259 259 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 260 + #if IS_ENABLED(CONFIG_BFIN_MAC) 260 261 #include <linux/bfin_mac.h> 261 262 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 262 263 ··· 289 290 }; 290 291 #endif 291 292 292 - #if defined(CONFIG_MTD_M25P80) \ 293 - || defined(CONFIG_MTD_M25P80_MODULE) 293 + #if IS_ENABLED(CONFIG_MTD_M25P80) 294 294 static struct mtd_partition bfin_spi_flash_partitions[] = { 295 295 { 296 296 .name = "bootloader(spi)", ··· 316 318 }; 317 319 #endif 318 320 319 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 321 + #if IS_ENABLED(CONFIG_MMC_SPI) 320 322 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 321 323 .enable_dma = 0, 322 324 }; 323 325 #endif 324 326 325 - #if defined(CONFIG_TOUCHSCREEN_AD7879) \ 326 - || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 327 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 327 328 static const struct ad7879_platform_data bfin_ad7879_ts_info = { 328 329 .model = 7879, /* Model = AD7879 */ 329 330 .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ ··· 340 343 }; 341 344 #endif 342 345 343 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 346 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 344 347 static struct platform_device bfin_i2s = { 345 348 .name = "bfin-i2s", 346 349 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 348 351 }; 349 352 #endif 350 353 351 - #if defined(CONFIG_GPIO_MCP23S08) || defined(CONFIG_GPIO_MCP23S08_MODULE) 354 + #if IS_ENABLED(CONFIG_GPIO_MCP23S08) 352 355 #include <linux/spi/mcp23s08.h> 353 356 static const struct mcp23s08_platform_data bfin_mcp23s08_sys_gpio_info = { 354 357 .chip[0].is_present = true, ··· 361 364 #endif 362 365 363 366 static struct spi_board_info bfin_spi_board_info[] __initdata = { 364 - #if defined(CONFIG_MTD_M25P80) \ 365 - || defined(CONFIG_MTD_M25P80_MODULE) 367 + #if IS_ENABLED(CONFIG_MTD_M25P80) 366 368 { 367 369 /* the modalias must be the same as spi device driver name */ 368 370 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 377 381 }, 378 382 #endif 379 383 380 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 384 + #if IS_ENABLED(CONFIG_MMC_SPI) 381 385 { 382 386 .modalias = "mmc_spi", 383 387 /* ··· 392 396 .mode = SPI_MODE_0, 393 397 }, 394 398 #endif 395 - #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) \ 396 - || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) 399 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) 397 400 { 398 401 .modalias = "ad7879", 399 402 .platform_data = &bfin_ad7879_ts_info, ··· 404 409 .mode = SPI_CPHA | SPI_CPOL, 405 410 }, 406 411 #endif 407 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 412 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 408 413 { 409 414 .modalias = "spidev", 410 415 .max_speed_hz = 10000000, ··· 414 419 .mode = SPI_CPHA | SPI_CPOL, 415 420 }, 416 421 #endif 417 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 422 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 418 423 { 419 424 .modalias = "bfin-lq035q1-spi", 420 425 .max_speed_hz = 20000000, ··· 423 428 .mode = SPI_CPHA | SPI_CPOL, 424 429 }, 425 430 #endif 426 - #if defined(CONFIG_GPIO_MCP23S08) || defined(CONFIG_GPIO_MCP23S08_MODULE) 431 + #if IS_ENABLED(CONFIG_GPIO_MCP23S08) 427 432 { 428 433 .modalias = "mcp23s08", 429 434 .platform_data = &bfin_mcp23s08_sys_gpio_info, ··· 443 448 #endif 444 449 }; 445 450 446 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 451 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 447 452 /* SPI controller data */ 448 453 static struct bfin5xx_spi_master bfin_spi0_info = { 449 454 .num_chipselect = EXP_GPIO_SPISEL_BASE + 8 + MAX_CTRL_CS, ··· 482 487 }; 483 488 #endif /* spi master and devices */ 484 489 485 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 490 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 486 491 #ifdef CONFIG_SERIAL_BFIN_UART0 487 492 static struct resource bfin_uart0_resources[] = { 488 493 { ··· 595 600 #endif 596 601 #endif 597 602 598 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 603 + #if IS_ENABLED(CONFIG_BFIN_SIR) 599 604 #ifdef CONFIG_BFIN_SIR0 600 605 static struct resource bfin_sir0_resources[] = { 601 606 { ··· 650 655 #endif 651 656 #endif 652 657 653 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 658 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 654 659 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 655 660 656 661 static struct resource bfin_twi0_resource[] = { ··· 678 683 #endif 679 684 680 685 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 681 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 686 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 682 687 { 683 688 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 684 689 }, 685 690 #endif 686 691 687 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 692 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 688 693 { 689 694 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 690 695 }, 691 696 #endif 692 - #if defined(CONFIG_TOUCHSCREEN_AD7879_I2C) \ 693 - || defined(CONFIG_TOUCHSCREEN_AD7879_I2C_MODULE) 697 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_I2C) 694 698 { 695 699 I2C_BOARD_INFO("ad7879", 0x2C), 696 700 .irq = IRQ_PH14, 697 701 .platform_data = (void *)&bfin_ad7879_ts_info, 698 702 }, 699 703 #endif 700 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 704 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 701 705 { 702 706 I2C_BOARD_INFO("ssm2602", 0x1b), 703 707 }, ··· 708 714 { 709 715 I2C_BOARD_INFO("ltc3576", 0x09), 710 716 }, 711 - #if defined(CONFIG_INPUT_ADXL34X_I2C) \ 712 - || defined(CONFIG_INPUT_ADXL34X_I2C_MODULE) 717 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C) 713 718 { 714 719 I2C_BOARD_INFO("adxl34x", 0x53), 715 720 .irq = IRQ_PH13, ··· 717 724 #endif 718 725 }; 719 726 720 - #if defined(CONFIG_SERIAL_BFIN_SPORT) \ 721 - || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 727 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 722 728 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 723 729 static struct resource bfin_sport0_uart_resources[] = { 724 730 { ··· 815 823 816 824 &bfin_dpmc, 817 825 818 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 826 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 819 827 &rtc_device, 820 828 #endif 821 829 822 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 830 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 823 831 &musb_device, 824 832 #endif 825 833 826 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 834 + #if IS_ENABLED(CONFIG_BFIN_MAC) 827 835 &bfin_mii_bus, 828 836 &bfin_mac_device, 829 837 #endif 830 838 831 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 839 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 832 840 &bfin_spi0_device, 833 841 #endif 834 842 835 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 843 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 836 844 &bfin_lq035q1_device, 837 845 #endif 838 846 839 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 847 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 840 848 #ifdef CONFIG_SERIAL_BFIN_UART0 841 849 &bfin_uart0_device, 842 850 #endif ··· 845 853 #endif 846 854 #endif 847 855 848 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 856 + #if IS_ENABLED(CONFIG_BFIN_SIR) 849 857 #ifdef CONFIG_BFIN_SIR0 850 858 &bfin_sir0_device, 851 859 #endif ··· 854 862 #endif 855 863 #endif 856 864 857 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 865 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 858 866 &i2c_bfin_twi_device, 859 867 #endif 860 868 861 - #if defined(CONFIG_SERIAL_BFIN_SPORT) \ 862 - || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 869 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 863 870 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 864 871 &bfin_sport0_uart_device, 865 872 #endif ··· 867 876 #endif 868 877 #endif 869 878 870 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 879 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 871 880 &tll6527m_flash_device, 872 881 #endif 873 882 874 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 883 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 875 884 &bfin_i2s, 876 885 #endif 877 886 878 - #if defined(CONFIG_GPIO_DECODER) || defined(CONFIG_GPIO_DECODER_MODULE) 887 + #if IS_ENABLED(CONFIG_GPIO_DECODER) 879 888 &spi_decoded_gpio, 880 889 #endif 881 890 };
+23 -23
arch/blackfin/mach-bf533/boards/H8606.c
··· 14 14 #include <linux/mtd/partitions.h> 15 15 #include <linux/spi/spi.h> 16 16 #include <linux/spi/flash.h> 17 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 17 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 18 18 #include <linux/usb/isp1362.h> 19 19 #endif 20 20 #include <linux/irq.h> ··· 29 29 */ 30 30 const char bfin_board_name[] = "HV Sistemas H8606"; 31 31 32 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 32 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 33 33 static struct platform_device rtc_device = { 34 34 .name = "rtc-bfin", 35 35 .id = -1, ··· 39 39 /* 40 40 * Driver needs to know address, irq and flag pin. 41 41 */ 42 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 42 + #if IS_ENABLED(CONFIG_DM9000) 43 43 static struct resource dm9000_resources[] = { 44 44 [0] = { 45 45 .start = 0x20300000, ··· 67 67 }; 68 68 #endif 69 69 70 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 70 + #if IS_ENABLED(CONFIG_SMC91X) 71 71 #include <linux/smc91x.h> 72 72 73 73 static struct smc91x_platdata smc91x_info = { ··· 104 104 }; 105 105 #endif 106 106 107 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 107 + #if IS_ENABLED(CONFIG_USB_NET2272) 108 108 static struct resource net2272_bfin_resources[] = { 109 109 { 110 110 .start = 0x20300000, ··· 125 125 }; 126 126 #endif 127 127 128 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 128 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 129 129 /* all SPI peripherals info goes here */ 130 130 131 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 131 + #if IS_ENABLED(CONFIG_MTD_M25P80) 132 132 static struct mtd_partition bfin_spi_flash_partitions[] = { 133 133 { 134 134 .name = "bootloader (spi)", ··· 166 166 /* Notice: for blackfin, the speed_hz is the value of register 167 167 * SPI_BAUD, not the real baudrate */ 168 168 static struct spi_board_info bfin_spi_board_info[] __initdata = { 169 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 169 + #if IS_ENABLED(CONFIG_MTD_M25P80) 170 170 { 171 171 /* the modalias must be the same as spi device driver name */ 172 172 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 180 180 }, 181 181 #endif 182 182 183 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 183 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 184 184 { 185 185 .modalias = "ad183x", 186 186 .max_speed_hz = 16, ··· 229 229 }; 230 230 #endif /* spi master and devices */ 231 231 232 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 232 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 233 233 #ifdef CONFIG_SERIAL_BFIN_UART0 234 234 static struct resource bfin_uart0_resources[] = { 235 235 { ··· 280 280 #endif 281 281 #endif 282 282 283 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 283 + #if IS_ENABLED(CONFIG_BFIN_SIR) 284 284 #ifdef CONFIG_BFIN_SIR0 285 285 static struct resource bfin_sir0_resources[] = { 286 286 { ··· 309 309 #endif 310 310 #endif 311 311 312 - #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) 312 + #if IS_ENABLED(CONFIG_SERIAL_8250) 313 313 314 314 #include <linux/serial_8250.h> 315 315 #include <linux/serial.h> ··· 353 353 354 354 #endif 355 355 356 - #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) 356 + #if IS_ENABLED(CONFIG_KEYBOARD_OPENCORES) 357 357 358 358 /* 359 359 * Configuration for one OpenCores keyboard controller in FPGA at address 0x20200030, ··· 382 382 #endif 383 383 384 384 static struct platform_device *h8606_devices[] __initdata = { 385 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 385 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 386 386 &rtc_device, 387 387 #endif 388 388 389 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 389 + #if IS_ENABLED(CONFIG_DM9000) 390 390 &dm9000_device, 391 391 #endif 392 392 393 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 393 + #if IS_ENABLED(CONFIG_SMC91X) 394 394 &smc91x_device, 395 395 #endif 396 396 397 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 397 + #if IS_ENABLED(CONFIG_USB_NET2272) 398 398 &net2272_bfin_device, 399 399 #endif 400 400 401 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 401 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 402 402 &bfin_spi0_device, 403 403 #endif 404 404 405 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 405 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 406 406 #ifdef CONFIG_SERIAL_BFIN_UART0 407 407 &bfin_uart0_device, 408 408 #endif 409 409 #endif 410 410 411 - #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) 411 + #if IS_ENABLED(CONFIG_SERIAL_8250) 412 412 &serial8250_device, 413 413 #endif 414 414 415 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 415 + #if IS_ENABLED(CONFIG_BFIN_SIR) 416 416 #ifdef CONFIG_BFIN_SIR0 417 417 &bfin_sir0_device, 418 418 #endif 419 419 #endif 420 420 421 - #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) 421 + #if IS_ENABLED(CONFIG_KEYBOARD_OPENCORES) 422 422 &opencores_kbd_device, 423 423 #endif 424 424 }; ··· 428 428 printk(KERN_INFO "HV Sistemas H8606 board support by http://www.hvsistemas.com\n"); 429 429 printk(KERN_INFO "%s(): registering device resources\n", __func__); 430 430 platform_add_devices(h8606_devices, ARRAY_SIZE(h8606_devices)); 431 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 431 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 432 432 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 433 433 #endif 434 434 return 0;
+22 -22
arch/blackfin/mach-bf533/boards/blackstamp.c
··· 31 31 */ 32 32 const char bfin_board_name[] = "BlackStamp"; 33 33 34 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 34 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 35 35 static struct platform_device rtc_device = { 36 36 .name = "rtc-bfin", 37 37 .id = -1, ··· 41 41 /* 42 42 * Driver needs to know address, irq and flag pin. 43 43 */ 44 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 44 + #if IS_ENABLED(CONFIG_SMC91X) 45 45 #include <linux/smc91x.h> 46 46 47 47 static struct smc91x_platdata smc91x_info = { ··· 74 74 }; 75 75 #endif 76 76 77 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 77 + #if IS_ENABLED(CONFIG_MTD_M25P80) 78 78 static struct mtd_partition bfin_spi_flash_partitions[] = { 79 79 { 80 80 .name = "bootloader(spi)", ··· 105 105 }; 106 106 #endif 107 107 108 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 108 + #if IS_ENABLED(CONFIG_MMC_SPI) 109 109 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 110 110 .enable_dma = 0, 111 111 }; 112 112 #endif 113 113 114 114 static struct spi_board_info bfin_spi_board_info[] __initdata = { 115 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 115 + #if IS_ENABLED(CONFIG_MTD_M25P80) 116 116 { 117 117 /* the modalias must be the same as spi device driver name */ 118 118 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 125 125 }, 126 126 #endif 127 127 128 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 128 + #if IS_ENABLED(CONFIG_MMC_SPI) 129 129 { 130 130 .modalias = "mmc_spi", 131 131 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 136 136 }, 137 137 #endif 138 138 139 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 139 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 140 140 { 141 141 .modalias = "spidev", 142 142 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 146 146 #endif 147 147 }; 148 148 149 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 149 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 150 150 /* SPI (0) */ 151 151 static struct resource bfin_spi0_resource[] = { 152 152 [0] = { ··· 184 184 }; 185 185 #endif /* spi master and devices */ 186 186 187 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 187 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 188 188 #ifdef CONFIG_SERIAL_BFIN_UART0 189 189 static struct resource bfin_uart0_resources[] = { 190 190 { ··· 235 235 #endif 236 236 #endif 237 237 238 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 238 + #if IS_ENABLED(CONFIG_BFIN_SIR) 239 239 #ifdef CONFIG_BFIN_SIR0 240 240 static struct resource bfin_sir0_resources[] = { 241 241 { ··· 264 264 #endif 265 265 #endif 266 266 267 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 267 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 268 268 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 269 269 static struct resource bfin_sport0_uart_resources[] = { 270 270 { ··· 335 335 #endif 336 336 #endif 337 337 338 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 338 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 339 339 #include <linux/input.h> 340 340 #include <linux/gpio_keys.h> 341 341 ··· 358 358 }; 359 359 #endif 360 360 361 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 361 + #if IS_ENABLED(CONFIG_I2C_GPIO) 362 362 #include <linux/i2c-gpio.h> 363 363 364 364 static struct i2c_gpio_platform_data i2c_gpio_data = { ··· 413 413 414 414 &bfin_dpmc, 415 415 416 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 416 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 417 417 &rtc_device, 418 418 #endif 419 419 420 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 420 + #if IS_ENABLED(CONFIG_SMC91X) 421 421 &smc91x_device, 422 422 #endif 423 423 424 424 425 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 425 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 426 426 &bfin_spi0_device, 427 427 #endif 428 428 429 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 429 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 430 430 #ifdef CONFIG_SERIAL_BFIN_UART0 431 431 &bfin_uart0_device, 432 432 #endif 433 433 #endif 434 434 435 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 435 + #if IS_ENABLED(CONFIG_BFIN_SIR) 436 436 #ifdef CONFIG_BFIN_SIR0 437 437 &bfin_sir0_device, 438 438 #endif 439 439 #endif 440 440 441 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 441 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 442 442 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 443 443 &bfin_sport0_uart_device, 444 444 #endif ··· 447 447 #endif 448 448 #endif 449 449 450 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 450 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 451 451 &bfin_device_gpiokeys, 452 452 #endif 453 453 454 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 454 + #if IS_ENABLED(CONFIG_I2C_GPIO) 455 455 &i2c_gpio_device, 456 456 #endif 457 457 }; ··· 469 469 if (ret < 0) 470 470 return ret; 471 471 472 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 472 + #if IS_ENABLED(CONFIG_SMC91X) 473 473 /* 474 474 * setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC. 475 475 * the bfin-async-map driver takes care of flipping between
+27 -27
arch/blackfin/mach-bf533/boards/cm_bf533.c
··· 15 15 #include <linux/spi/spi.h> 16 16 #include <linux/spi/flash.h> 17 17 #include <linux/spi/mmc_spi.h> 18 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 18 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 19 19 #include <linux/usb/isp1362.h> 20 20 #endif 21 21 #include <linux/irq.h> ··· 29 29 */ 30 30 const char bfin_board_name[] = "Bluetechnix CM BF533"; 31 31 32 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 32 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 33 33 /* all SPI peripherals info goes here */ 34 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 34 + #if IS_ENABLED(CONFIG_MTD_M25P80) 35 35 static struct mtd_partition bfin_spi_flash_partitions[] = { 36 36 { 37 37 .name = "bootloader(spi)", ··· 62 62 }; 63 63 #endif 64 64 65 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 65 + #if IS_ENABLED(CONFIG_MMC_SPI) 66 66 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 67 67 .enable_dma = 0, 68 68 }; 69 69 #endif 70 70 71 71 static struct spi_board_info bfin_spi_board_info[] __initdata = { 72 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 72 + #if IS_ENABLED(CONFIG_MTD_M25P80) 73 73 { 74 74 /* the modalias must be the same as spi device driver name */ 75 75 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 82 82 }, 83 83 #endif 84 84 85 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 85 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 86 86 { 87 87 .modalias = "ad183x", 88 88 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 91 91 }, 92 92 #endif 93 93 94 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 94 + #if IS_ENABLED(CONFIG_MMC_SPI) 95 95 { 96 96 .modalias = "mmc_spi", 97 97 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 140 140 }; 141 141 #endif /* spi master and devices */ 142 142 143 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 143 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 144 144 static struct platform_device rtc_device = { 145 145 .name = "rtc-bfin", 146 146 .id = -1, 147 147 }; 148 148 #endif 149 149 150 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 150 + #if IS_ENABLED(CONFIG_SMC91X) 151 151 #include <linux/smc91x.h> 152 152 153 153 static struct smc91x_platdata smc91x_info = { ··· 178 178 }; 179 179 #endif 180 180 181 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 181 + #if IS_ENABLED(CONFIG_SMSC911X) 182 182 #include <linux/smsc911x.h> 183 183 184 184 static struct resource smsc911x_resources[] = { ··· 212 212 }; 213 213 #endif 214 214 215 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 215 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 216 216 #ifdef CONFIG_SERIAL_BFIN_UART0 217 217 static struct resource bfin_uart0_resources[] = { 218 218 { ··· 263 263 #endif 264 264 #endif 265 265 266 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 266 + #if IS_ENABLED(CONFIG_BFIN_SIR) 267 267 #ifdef CONFIG_BFIN_SIR0 268 268 static struct resource bfin_sir0_resources[] = { 269 269 { ··· 292 292 #endif 293 293 #endif 294 294 295 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 295 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 296 296 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 297 297 static struct resource bfin_sport0_uart_resources[] = { 298 298 { ··· 363 363 #endif 364 364 #endif 365 365 366 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 366 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 367 367 static struct resource isp1362_hcd_resources[] = { 368 368 { 369 369 .start = 0x20308000, ··· 403 403 #endif 404 404 405 405 406 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 406 + #if IS_ENABLED(CONFIG_USB_NET2272) 407 407 static struct resource net2272_bfin_resources[] = { 408 408 { 409 409 .start = 0x20300000, ··· 426 426 427 427 428 428 429 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 429 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 430 430 static struct mtd_partition para_partitions[] = { 431 431 { 432 432 .name = "bootloader(nor)", ··· 495 495 496 496 &bfin_dpmc, 497 497 498 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 498 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 499 499 #ifdef CONFIG_SERIAL_BFIN_UART0 500 500 &bfin_uart0_device, 501 501 #endif 502 502 #endif 503 503 504 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 504 + #if IS_ENABLED(CONFIG_BFIN_SIR) 505 505 #ifdef CONFIG_BFIN_SIR0 506 506 &bfin_sir0_device, 507 507 #endif 508 508 #endif 509 509 510 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 510 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 511 511 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 512 512 &bfin_sport0_uart_device, 513 513 #endif ··· 516 516 #endif 517 517 #endif 518 518 519 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 519 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 520 520 &rtc_device, 521 521 #endif 522 522 523 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 523 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 524 524 &isp1362_hcd_device, 525 525 #endif 526 526 527 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 527 + #if IS_ENABLED(CONFIG_SMC91X) 528 528 &smc91x_device, 529 529 #endif 530 530 531 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 531 + #if IS_ENABLED(CONFIG_SMSC911X) 532 532 &smsc911x_device, 533 533 #endif 534 534 535 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 535 + #if IS_ENABLED(CONFIG_USB_NET2272) 536 536 &net2272_bfin_device, 537 537 #endif 538 538 539 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 539 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 540 540 &bfin_spi0_device, 541 541 #endif 542 542 543 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 543 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 544 544 &para_flash_device, 545 545 #endif 546 546 }; ··· 549 549 { 550 550 printk(KERN_INFO "%s(): registering device resources\n", __func__); 551 551 platform_add_devices(cm_bf533_devices, ARRAY_SIZE(cm_bf533_devices)); 552 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 552 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 553 553 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 554 554 #endif 555 555 return 0;
+28 -28
arch/blackfin/mach-bf533/boards/ezkit.c
··· 14 14 #include <linux/mtd/physmap.h> 15 15 #include <linux/spi/spi.h> 16 16 #include <linux/spi/flash.h> 17 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 17 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 18 18 #include <linux/usb/isp1362.h> 19 19 #endif 20 20 #include <linux/irq.h> ··· 29 29 */ 30 30 const char bfin_board_name[] = "ADI BF533-EZKIT"; 31 31 32 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 32 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 33 33 static struct platform_device rtc_device = { 34 34 .name = "rtc-bfin", 35 35 .id = -1, ··· 40 40 * USB-LAN EzExtender board 41 41 * Driver needs to know address, irq and flag pin. 42 42 */ 43 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 43 + #if IS_ENABLED(CONFIG_SMC91X) 44 44 #include <linux/smc91x.h> 45 45 46 46 static struct smc91x_platdata smc91x_info = { ··· 72 72 }; 73 73 #endif 74 74 75 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 75 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 76 76 static struct mtd_partition ezkit_partitions_a[] = { 77 77 { 78 78 .name = "bootloader(nor a)", ··· 138 138 }; 139 139 #endif 140 140 141 - #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE) 141 + #if IS_ENABLED(CONFIG_MTD_PLATRAM) 142 142 static struct platdata_mtd_ram sram_data_a = { 143 143 .mapname = "Flash A SRAM", 144 144 .bankwidth = 2, ··· 182 182 }; 183 183 #endif 184 184 185 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 185 + #if IS_ENABLED(CONFIG_MTD_M25P80) 186 186 static struct mtd_partition bfin_spi_flash_partitions[] = { 187 187 { 188 188 .name = "bootloader(spi)", ··· 214 214 #endif 215 215 216 216 static struct spi_board_info bfin_spi_board_info[] __initdata = { 217 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 217 + #if IS_ENABLED(CONFIG_MTD_M25P80) 218 218 { 219 219 /* the modalias must be the same as spi device driver name */ 220 220 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 227 227 }, 228 228 #endif 229 229 230 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 230 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 231 231 { 232 232 .modalias = "ad183x", 233 233 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 235 235 .chip_select = 4, 236 236 }, 237 237 #endif 238 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 238 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 239 239 { 240 240 .modalias = "spidev", 241 241 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 245 245 #endif 246 246 }; 247 247 248 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 248 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 249 249 /* SPI (0) */ 250 250 static struct resource bfin_spi0_resource[] = { 251 251 [0] = { ··· 283 283 }; 284 284 #endif /* spi master and devices */ 285 285 286 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 286 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 287 287 #ifdef CONFIG_SERIAL_BFIN_UART0 288 288 static struct resource bfin_uart0_resources[] = { 289 289 { ··· 334 334 #endif 335 335 #endif 336 336 337 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 337 + #if IS_ENABLED(CONFIG_BFIN_SIR) 338 338 #ifdef CONFIG_BFIN_SIR0 339 339 static struct resource bfin_sir0_resources[] = { 340 340 { ··· 363 363 #endif 364 364 #endif 365 365 366 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 366 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 367 367 #include <linux/input.h> 368 368 #include <linux/gpio_keys.h> 369 369 ··· 387 387 }; 388 388 #endif 389 389 390 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 390 + #if IS_ENABLED(CONFIG_I2C_GPIO) 391 391 #include <linux/i2c-gpio.h> 392 392 393 393 static struct i2c_gpio_platform_data i2c_gpio_data = { ··· 435 435 }; 436 436 437 437 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 438 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 438 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 439 439 { 440 440 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 441 441 }, 442 442 #endif 443 443 }; 444 444 445 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 445 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 446 446 static struct platform_device bfin_i2s = { 447 447 .name = "bfin-i2s", 448 448 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 450 450 }; 451 451 #endif 452 452 453 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 453 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 454 454 static struct platform_device bfin_ac97 = { 455 455 .name = "bfin-ac97", 456 456 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 462 462 463 463 &bfin_dpmc, 464 464 465 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 465 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 466 466 &ezkit_flash_device_a, 467 467 &ezkit_flash_device_b, 468 468 #endif 469 469 470 - #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE) 470 + #if IS_ENABLED(CONFIG_MTD_PLATRAM) 471 471 &sram_device_a, 472 472 &sram_device_b, 473 473 #endif 474 474 475 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 475 + #if IS_ENABLED(CONFIG_SMC91X) 476 476 &smc91x_device, 477 477 #endif 478 478 479 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 479 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 480 480 &bfin_spi0_device, 481 481 #endif 482 482 483 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 483 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 484 484 &rtc_device, 485 485 #endif 486 486 487 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 487 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 488 488 #ifdef CONFIG_SERIAL_BFIN_UART0 489 489 &bfin_uart0_device, 490 490 #endif 491 491 #endif 492 492 493 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 493 + #if IS_ENABLED(CONFIG_BFIN_SIR) 494 494 #ifdef CONFIG_BFIN_SIR0 495 495 &bfin_sir0_device, 496 496 #endif 497 497 #endif 498 498 499 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 499 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 500 500 &bfin_device_gpiokeys, 501 501 #endif 502 502 503 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 503 + #if IS_ENABLED(CONFIG_I2C_GPIO) 504 504 &i2c_gpio_device, 505 505 #endif 506 506 507 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 507 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 508 508 &bfin_i2s, 509 509 #endif 510 510 511 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 511 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 512 512 &bfin_ac97, 513 513 #endif 514 514 };
+13 -13
arch/blackfin/mach-bf533/boards/ip0x.c
··· 15 15 #include <linux/mtd/partitions.h> 16 16 #include <linux/spi/spi.h> 17 17 #include <linux/spi/flash.h> 18 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 18 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 19 19 #include <linux/usb/isp1362.h> 20 20 #endif 21 21 #include <asm/irq.h> ··· 32 32 * Driver needs to know address, irq and flag pin. 33 33 */ 34 34 #if defined(CONFIG_BFIN532_IP0X) 35 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 35 + #if IS_ENABLED(CONFIG_DM9000) 36 36 37 37 #include <linux/dm9000.h> 38 38 ··· 104 104 #endif 105 105 106 106 107 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 107 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 108 108 /* all SPI peripherals info goes here */ 109 109 110 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 110 + #if IS_ENABLED(CONFIG_MMC_SPI) 111 111 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 112 112 .enable_dma = 0, /* if 1 - block!!! */ 113 113 }; ··· 116 116 /* Notice: for blackfin, the speed_hz is the value of register 117 117 * SPI_BAUD, not the real baudrate */ 118 118 static struct spi_board_info bfin_spi_board_info[] __initdata = { 119 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 119 + #if IS_ENABLED(CONFIG_MMC_SPI) 120 120 { 121 121 .modalias = "mmc_spi", 122 122 .max_speed_hz = 2, ··· 142 142 }; 143 143 #endif /* spi master and devices */ 144 144 145 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 145 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 146 146 #ifdef CONFIG_SERIAL_BFIN_UART0 147 147 static struct resource bfin_uart0_resources[] = { 148 148 { ··· 193 193 #endif 194 194 #endif 195 195 196 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 196 + #if IS_ENABLED(CONFIG_BFIN_SIR) 197 197 #ifdef CONFIG_BFIN_SIR0 198 198 static struct resource bfin_sir0_resources[] = { 199 199 { ··· 222 222 #endif 223 223 #endif 224 224 225 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 225 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 226 226 static struct resource isp1362_hcd_resources[] = { 227 227 { 228 228 .start = 0x20300000, ··· 264 264 265 265 static struct platform_device *ip0x_devices[] __initdata = { 266 266 #if defined(CONFIG_BFIN532_IP0X) 267 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 267 + #if IS_ENABLED(CONFIG_DM9000) 268 268 &dm9000_device1, 269 269 &dm9000_device2, 270 270 #endif 271 271 #endif 272 272 273 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 273 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 274 274 &spi_bfin_master_device, 275 275 #endif 276 276 277 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 277 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 278 278 #ifdef CONFIG_SERIAL_BFIN_UART0 279 279 &bfin_uart0_device, 280 280 #endif 281 281 #endif 282 282 283 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 283 + #if IS_ENABLED(CONFIG_BFIN_SIR) 284 284 #ifdef CONFIG_BFIN_SIR0 285 285 &bfin_sir0_device, 286 286 #endif 287 287 #endif 288 288 289 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 289 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 290 290 &isp1362_hcd_device, 291 291 #endif 292 292 };
+53 -65
arch/blackfin/mach-bf533/boards/stamp.c
··· 14 14 #include <linux/spi/spi.h> 15 15 #include <linux/spi/flash.h> 16 16 #include <linux/spi/mmc_spi.h> 17 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 17 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 18 18 #include <linux/usb/isp1362.h> 19 19 #endif 20 20 #include <linux/irq.h> ··· 30 30 */ 31 31 const char bfin_board_name[] = "ADI BF533-STAMP"; 32 32 33 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 33 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 34 34 static struct platform_device rtc_device = { 35 35 .name = "rtc-bfin", 36 36 .id = -1, ··· 40 40 /* 41 41 * Driver needs to know address, irq and flag pin. 42 42 */ 43 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 43 + #if IS_ENABLED(CONFIG_SMC91X) 44 44 #include <linux/smc91x.h> 45 45 46 46 static struct smc91x_platdata smc91x_info = { ··· 73 73 }; 74 74 #endif 75 75 76 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 76 + #if IS_ENABLED(CONFIG_USB_NET2272) 77 77 static struct resource net2272_bfin_resources[] = { 78 78 { 79 79 .start = 0x20300000, ··· 97 97 }; 98 98 #endif 99 99 100 - #if defined(CONFIG_MTD_BFIN_ASYNC) || defined(CONFIG_MTD_BFIN_ASYNC_MODULE) 100 + #if IS_ENABLED(CONFIG_MTD_BFIN_ASYNC) 101 101 static struct mtd_partition stamp_partitions[] = { 102 102 { 103 103 .name = "bootloader(nor)", ··· 147 147 }; 148 148 #endif 149 149 150 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 150 + #if IS_ENABLED(CONFIG_MTD_M25P80) 151 151 static struct mtd_partition bfin_spi_flash_partitions[] = { 152 152 { 153 153 .name = "bootloader(spi)", ··· 178 178 }; 179 179 #endif 180 180 181 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 181 + #if IS_ENABLED(CONFIG_MMC_SPI) 182 182 #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 183 183 static int bfin_mmc_spi_init(struct device *dev, 184 184 irqreturn_t (*detect_int)(int, void *), void *data) ··· 206 206 #endif 207 207 208 208 static struct spi_board_info bfin_spi_board_info[] __initdata = { 209 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 209 + #if IS_ENABLED(CONFIG_MTD_M25P80) 210 210 { 211 211 /* the modalias must be the same as spi device driver name */ 212 212 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 219 219 }, 220 220 #endif 221 221 222 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 223 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 222 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 224 223 { 225 224 .modalias = "ad1836", 226 225 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 230 231 }, 231 232 #endif 232 233 233 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 234 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 234 235 { 235 236 .modalias = "spidev", 236 237 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 238 239 .chip_select = 1, 239 240 }, 240 241 #endif 241 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 242 + #if IS_ENABLED(CONFIG_MMC_SPI) 242 243 { 243 244 .modalias = "mmc_spi", 244 245 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 251 252 #endif 252 253 }; 253 254 254 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 255 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 255 256 /* SPI (0) */ 256 257 static struct resource bfin_spi0_resource[] = { 257 258 [0] = { ··· 289 290 }; 290 291 #endif /* spi master and devices */ 291 292 292 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 293 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 293 294 #ifdef CONFIG_SERIAL_BFIN_UART0 294 295 static struct resource bfin_uart0_resources[] = { 295 296 { ··· 340 341 #endif 341 342 #endif 342 343 343 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 344 + #if IS_ENABLED(CONFIG_BFIN_SIR) 344 345 #ifdef CONFIG_BFIN_SIR0 345 346 static struct resource bfin_sir0_resources[] = { 346 347 { ··· 369 370 #endif 370 371 #endif 371 372 372 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || \ 373 - defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 373 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 374 374 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 375 375 static struct resource bfin_sport0_uart_resources[] = { 376 376 { ··· 440 442 #endif 441 443 #endif 442 444 443 - #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 445 + #if IS_ENABLED(CONFIG_BFIN_SPORT) 444 446 static struct resource bfin_sport0_resources[] = { 445 447 { 446 448 .start = SPORT0_TCR1, ··· 484 486 }; 485 487 #endif 486 488 487 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 489 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 488 490 #include <linux/input.h> 489 491 #include <linux/gpio_keys.h> 490 492 ··· 507 509 }; 508 510 #endif 509 511 510 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 512 + #if IS_ENABLED(CONFIG_I2C_GPIO) 511 513 #include <linux/i2c-gpio.h> 512 514 513 515 static struct i2c_gpio_platform_data i2c_gpio_data = { ··· 528 530 #endif 529 531 530 532 static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 531 - #if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE) 533 + #if IS_ENABLED(CONFIG_JOYSTICK_AD7142) 532 534 { 533 535 I2C_BOARD_INFO("ad7142_joystick", 0x2C), 534 536 .irq = 39, 535 537 }, 536 538 #endif 537 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 539 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 538 540 { 539 541 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 540 542 }, 541 543 #endif 542 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 544 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 543 545 { 544 546 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 545 547 .irq = 39, 546 548 }, 547 549 #endif 548 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 550 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 549 551 { 550 552 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 551 553 }, 552 554 #endif 553 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 555 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 554 556 { 555 557 I2C_BOARD_INFO("ad5252", 0x2f), 556 558 }, ··· 584 586 }, 585 587 }; 586 588 587 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \ 588 - defined(CONFIG_SND_BF5XX_AC97) || \ 589 - defined(CONFIG_SND_BF5XX_AC97_MODULE) 589 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) || \ 590 + IS_ENABLED(CONFIG_SND_BF5XX_AC97) 590 591 591 592 #include <asm/bfin_sport.h> 592 593 ··· 637 640 }; 638 641 #endif 639 642 640 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 643 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 641 644 static struct platform_device bfin_i2s_pcm = { 642 645 .name = "bfin-i2s-pcm-audio", 643 646 .id = -1, 644 647 }; 645 648 #endif 646 649 647 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 650 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 648 651 static struct platform_device bfin_ac97_pcm = { 649 652 .name = "bfin-ac97-pcm-audio", 650 653 .id = -1, 651 654 }; 652 655 #endif 653 656 654 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 655 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 657 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 656 658 static const char * const ad1836_link[] = { 657 659 "bfin-i2s.0", 658 660 "spi0.4", ··· 665 669 }; 666 670 #endif 667 671 668 - #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ 669 - defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) 672 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD73311) 670 673 static const unsigned ad73311_gpio[] = { 671 674 GPIO_PF4, 672 675 }; ··· 679 684 }; 680 685 #endif 681 686 682 - #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 687 + #if IS_ENABLED(CONFIG_SND_SOC_AD73311) 683 688 static struct platform_device bfin_ad73311_codec_device = { 684 689 .name = "ad73311", 685 690 .id = -1, 686 691 }; 687 692 #endif 688 693 689 - #if defined(CONFIG_SND_SOC_AD74111) || defined(CONFIG_SND_SOC_AD74111_MODULE) 694 + #if IS_ENABLED(CONFIG_SND_SOC_AD74111) 690 695 static struct platform_device bfin_ad74111_codec_device = { 691 696 .name = "ad74111", 692 697 .id = -1, 693 698 }; 694 699 #endif 695 700 696 - #if defined(CONFIG_SND_BF5XX_SOC_I2S) || \ 697 - defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE) 701 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_I2S) 698 702 static struct platform_device bfin_i2s = { 699 703 .name = "bfin-i2s", 700 704 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 706 712 }; 707 713 #endif 708 714 709 - #if defined(CONFIG_SND_BF5XX_SOC_AC97) || \ 710 - defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE) 715 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AC97) 711 716 static struct platform_device bfin_ac97 = { 712 717 .name = "bfin-ac97", 713 718 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 723 730 724 731 &bfin_dpmc, 725 732 726 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 733 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 727 734 &rtc_device, 728 735 #endif 729 736 730 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 737 + #if IS_ENABLED(CONFIG_SMC91X) 731 738 &smc91x_device, 732 739 #endif 733 740 734 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 741 + #if IS_ENABLED(CONFIG_USB_NET2272) 735 742 &net2272_bfin_device, 736 743 #endif 737 744 738 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 745 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 739 746 &bfin_spi0_device, 740 747 #endif 741 748 742 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 749 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 743 750 #ifdef CONFIG_SERIAL_BFIN_UART0 744 751 &bfin_uart0_device, 745 752 #endif 746 753 #endif 747 754 748 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 755 + #if IS_ENABLED(CONFIG_BFIN_SIR) 749 756 #ifdef CONFIG_BFIN_SIR0 750 757 &bfin_sir0_device, 751 758 #endif 752 759 #endif 753 760 754 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || \ 755 - defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 761 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 756 762 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 757 763 &bfin_sport0_uart_device, 758 764 #endif ··· 760 768 #endif 761 769 #endif 762 770 763 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 771 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 764 772 &bfin_device_gpiokeys, 765 773 #endif 766 774 767 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 775 + #if IS_ENABLED(CONFIG_I2C_GPIO) 768 776 &i2c_gpio_device, 769 777 #endif 770 778 771 - #if defined(CONFIG_MTD_BFIN_ASYNC) || defined(CONFIG_MTD_BFIN_ASYNC_MODULE) 779 + #if IS_ENABLED(CONFIG_MTD_BFIN_ASYNC) 772 780 &stamp_flash_device, 773 781 #endif 774 782 775 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 783 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 776 784 &bfin_i2s_pcm, 777 785 #endif 778 786 779 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 787 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 780 788 &bfin_ac97_pcm, 781 789 #endif 782 790 783 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 784 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 791 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 785 792 &bfin_ad1836_machine, 786 793 #endif 787 794 788 - #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ 789 - defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) 795 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD73311) 790 796 &bfin_ad73311_machine, 791 797 #endif 792 798 793 - #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 799 + #if IS_ENABLED(CONFIG_SND_SOC_AD73311) 794 800 &bfin_ad73311_codec_device, 795 801 #endif 796 802 797 - #if defined(CONFIG_SND_SOC_AD74111) || defined(CONFIG_SND_SOC_AD74111_MODULE) 803 + #if IS_ENABLED(CONFIG_SND_SOC_AD74111) 798 804 &bfin_ad74111_codec_device, 799 805 #endif 800 806 801 - #if defined(CONFIG_SND_BF5XX_SOC_I2S) || \ 802 - defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE) 807 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_I2S) 803 808 &bfin_i2s, 804 809 #endif 805 810 806 - #if defined(CONFIG_SND_BF5XX_SOC_AC97) || \ 807 - defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE) 811 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AC97) 808 812 &bfin_ac97, 809 813 #endif 810 814 }; 811 815 812 816 static int __init net2272_init(void) 813 817 { 814 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 818 + #if IS_ENABLED(CONFIG_USB_NET2272) 815 819 int ret; 816 820 817 821 /* Set PF0 to 0, PF1 to 1 make /AMS3 work properly */ ··· 853 865 if (ret < 0) 854 866 return ret; 855 867 856 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 868 + #if IS_ENABLED(CONFIG_SMC91X) 857 869 /* 858 870 * setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC. 859 871 * the bfin-async-map driver takes care of flipping between
+41 -41
arch/blackfin/mach-bf537/boards/cm_bf537e.c
··· 16 16 #include <linux/mtd/physmap.h> 17 17 #include <linux/spi/spi.h> 18 18 #include <linux/spi/flash.h> 19 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 19 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 20 20 #include <linux/usb/isp1362.h> 21 21 #endif 22 22 #include <linux/ata_platform.h> ··· 32 32 */ 33 33 const char bfin_board_name[] = "Bluetechnix CM BF537E"; 34 34 35 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 35 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 36 36 /* all SPI peripherals info goes here */ 37 37 38 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 38 + #if IS_ENABLED(CONFIG_MTD_M25P80) 39 39 static struct mtd_partition bfin_spi_flash_partitions[] = { 40 40 { 41 41 .name = "bootloader(spi)", ··· 66 66 }; 67 67 #endif 68 68 69 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 69 + #if IS_ENABLED(CONFIG_MMC_SPI) 70 70 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 71 71 .enable_dma = 0, 72 72 }; 73 73 #endif 74 74 75 75 static struct spi_board_info bfin_spi_board_info[] __initdata = { 76 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 76 + #if IS_ENABLED(CONFIG_MTD_M25P80) 77 77 { 78 78 /* the modalias must be the same as spi device driver name */ 79 79 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 86 86 }, 87 87 #endif 88 88 89 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 89 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 90 90 { 91 91 .modalias = "ad183x", 92 92 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 95 95 }, 96 96 #endif 97 97 98 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 98 + #if IS_ENABLED(CONFIG_MMC_SPI) 99 99 { 100 100 .modalias = "mmc_spi", 101 101 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 144 144 }; 145 145 #endif /* spi master and devices */ 146 146 147 - #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE) 147 + #if IS_ENABLED(CONFIG_SPI_BFIN_SPORT) 148 148 149 149 /* SPORT SPI controller data */ 150 150 static struct bfin5xx_spi_master bfin_sport_spi0_info = { ··· 209 209 210 210 #endif /* sport spi master and devices */ 211 211 212 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 212 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 213 213 static struct platform_device rtc_device = { 214 214 .name = "rtc-bfin", 215 215 .id = -1, 216 216 }; 217 217 #endif 218 218 219 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 219 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 220 220 static struct platform_device hitachi_fb_device = { 221 221 .name = "hitachi-tx09", 222 222 }; 223 223 #endif 224 224 225 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 225 + #if IS_ENABLED(CONFIG_SMC91X) 226 226 #include <linux/smc91x.h> 227 227 228 228 static struct smc91x_platdata smc91x_info = { ··· 254 254 }; 255 255 #endif 256 256 257 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 257 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 258 258 static struct resource isp1362_hcd_resources[] = { 259 259 { 260 260 .start = 0x20308000, ··· 293 293 }; 294 294 #endif 295 295 296 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 296 + #if IS_ENABLED(CONFIG_USB_NET2272) 297 297 static struct resource net2272_bfin_resources[] = { 298 298 { 299 299 .start = 0x20300000, ··· 314 314 }; 315 315 #endif 316 316 317 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 317 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 318 318 static struct mtd_partition cm_partitions[] = { 319 319 { 320 320 .name = "bootloader(nor)", ··· 363 363 }; 364 364 #endif 365 365 366 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 366 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 367 367 #ifdef CONFIG_SERIAL_BFIN_UART0 368 368 static struct resource bfin_uart0_resources[] = { 369 369 { ··· 498 498 #endif 499 499 #endif 500 500 501 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 501 + #if IS_ENABLED(CONFIG_BFIN_SIR) 502 502 #ifdef CONFIG_BFIN_SIR0 503 503 static struct resource bfin_sir0_resources[] = { 504 504 { ··· 551 551 #endif 552 552 #endif 553 553 554 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 554 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 555 555 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 556 556 557 557 static struct resource bfin_twi0_resource[] = { ··· 578 578 }; 579 579 #endif 580 580 581 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) \ 582 - || defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 581 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) \ 582 + || IS_ENABLED(CONFIG_BFIN_SPORT) 583 583 unsigned short bfin_sport0_peripherals[] = { 584 584 P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, 585 585 P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 586 586 }; 587 587 #endif 588 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 588 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 589 589 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 590 590 static struct resource bfin_sport0_uart_resources[] = { 591 591 { ··· 650 650 }; 651 651 #endif 652 652 #endif 653 - #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 653 + #if IS_ENABLED(CONFIG_BFIN_SPORT) 654 654 static struct resource bfin_sport0_resources[] = { 655 655 { 656 656 .start = SPORT0_TCR1, ··· 694 694 }; 695 695 #endif 696 696 697 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 697 + #if IS_ENABLED(CONFIG_BFIN_MAC) 698 698 #include <linux/bfin_mac.h> 699 699 static const unsigned short bfin_mac_peripherals[] = P_MII0; 700 700 ··· 727 727 }; 728 728 #endif 729 729 730 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 730 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 731 731 #define PATA_INT IRQ_PF14 732 732 733 733 static struct pata_platform_info bfin_pata_platform_data = { ··· 795 795 796 796 &bfin_dpmc, 797 797 798 - #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 798 + #if IS_ENABLED(CONFIG_BFIN_SPORT) 799 799 &bfin_sport0_device, 800 800 #endif 801 801 802 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 802 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 803 803 &hitachi_fb_device, 804 804 #endif 805 805 806 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 806 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 807 807 &rtc_device, 808 808 #endif 809 809 810 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 810 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 811 811 #ifdef CONFIG_SERIAL_BFIN_UART0 812 812 &bfin_uart0_device, 813 813 #endif ··· 816 816 #endif 817 817 #endif 818 818 819 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 819 + #if IS_ENABLED(CONFIG_BFIN_SIR) 820 820 #ifdef CONFIG_BFIN_SIR0 821 821 &bfin_sir0_device, 822 822 #endif ··· 825 825 #endif 826 826 #endif 827 827 828 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 828 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 829 829 &i2c_bfin_twi_device, 830 830 #endif 831 831 832 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 832 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 833 833 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 834 834 &bfin_sport0_uart_device, 835 835 #endif ··· 838 838 #endif 839 839 #endif 840 840 841 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 841 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 842 842 &isp1362_hcd_device, 843 843 #endif 844 844 845 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 845 + #if IS_ENABLED(CONFIG_SMC91X) 846 846 &smc91x_device, 847 847 #endif 848 848 849 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 849 + #if IS_ENABLED(CONFIG_BFIN_MAC) 850 850 &bfin_mii_bus, 851 851 &bfin_mac_device, 852 852 #endif 853 853 854 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 854 + #if IS_ENABLED(CONFIG_USB_NET2272) 855 855 &net2272_bfin_device, 856 856 #endif 857 857 858 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 858 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 859 859 &bfin_spi0_device, 860 860 #endif 861 861 862 - #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE) 862 + #if IS_ENABLED(CONFIG_SPI_BFIN_SPORT) 863 863 &bfin_sport_spi0_device, 864 864 &bfin_sport_spi1_device, 865 865 #endif 866 866 867 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 867 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 868 868 &bfin_pata_device, 869 869 #endif 870 870 871 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 871 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 872 872 &cm_flash_device, 873 873 #endif 874 874 }; 875 875 876 876 static int __init net2272_init(void) 877 877 { 878 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 878 + #if IS_ENABLED(CONFIG_USB_NET2272) 879 879 int ret; 880 880 881 881 ret = gpio_request(GPIO_PG14, "net2272"); ··· 895 895 { 896 896 printk(KERN_INFO "%s(): registering device resources\n", __func__); 897 897 platform_add_devices(cm_bf537e_devices, ARRAY_SIZE(cm_bf537e_devices)); 898 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 898 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 899 899 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 900 900 #endif 901 901 902 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 902 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 903 903 irq_set_status_flags(PATA_INT, IRQ_NOAUTOEN); 904 904 #endif 905 905
+35 -35
arch/blackfin/mach-bf537/boards/cm_bf537u.c
··· 16 16 #include <linux/mtd/physmap.h> 17 17 #include <linux/spi/spi.h> 18 18 #include <linux/spi/flash.h> 19 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 19 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 20 20 #include <linux/usb/isp1362.h> 21 21 #endif 22 22 #include <linux/ata_platform.h> ··· 32 32 */ 33 33 const char bfin_board_name[] = "Bluetechnix CM BF537U"; 34 34 35 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 35 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 36 36 /* all SPI peripherals info goes here */ 37 37 38 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 38 + #if IS_ENABLED(CONFIG_MTD_M25P80) 39 39 static struct mtd_partition bfin_spi_flash_partitions[] = { 40 40 { 41 41 .name = "bootloader(spi)", ··· 66 66 }; 67 67 #endif 68 68 69 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 69 + #if IS_ENABLED(CONFIG_MMC_SPI) 70 70 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 71 71 .enable_dma = 0, 72 72 }; 73 73 #endif 74 74 75 75 static struct spi_board_info bfin_spi_board_info[] __initdata = { 76 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 76 + #if IS_ENABLED(CONFIG_MTD_M25P80) 77 77 { 78 78 /* the modalias must be the same as spi device driver name */ 79 79 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 86 86 }, 87 87 #endif 88 88 89 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 89 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 90 90 { 91 91 .modalias = "ad183x", 92 92 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 95 95 }, 96 96 #endif 97 97 98 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 98 + #if IS_ENABLED(CONFIG_MMC_SPI) 99 99 { 100 100 .modalias = "mmc_spi", 101 101 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 144 144 }; 145 145 #endif /* spi master and devices */ 146 146 147 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 147 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 148 148 static struct platform_device rtc_device = { 149 149 .name = "rtc-bfin", 150 150 .id = -1, 151 151 }; 152 152 #endif 153 153 154 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 154 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 155 155 static struct platform_device hitachi_fb_device = { 156 156 .name = "hitachi-tx09", 157 157 }; 158 158 #endif 159 159 160 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 160 + #if IS_ENABLED(CONFIG_SMC91X) 161 161 #include <linux/smc91x.h> 162 162 163 163 static struct smc91x_platdata smc91x_info = { ··· 189 189 }; 190 190 #endif 191 191 192 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 192 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 193 193 static struct resource isp1362_hcd_resources[] = { 194 194 { 195 195 .start = 0x20308000, ··· 228 228 }; 229 229 #endif 230 230 231 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 231 + #if IS_ENABLED(CONFIG_USB_NET2272) 232 232 static struct resource net2272_bfin_resources[] = { 233 233 { 234 234 .start = 0x20200000, ··· 249 249 }; 250 250 #endif 251 251 252 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 252 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 253 253 static struct mtd_partition cm_partitions[] = { 254 254 { 255 255 .name = "bootloader(nor)", ··· 298 298 }; 299 299 #endif 300 300 301 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 301 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 302 302 #ifdef CONFIG_SERIAL_BFIN_UART0 303 303 static struct resource bfin_uart0_resources[] = { 304 304 { ··· 397 397 #endif 398 398 #endif 399 399 400 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 400 + #if IS_ENABLED(CONFIG_BFIN_SIR) 401 401 #ifdef CONFIG_BFIN_SIR0 402 402 static struct resource bfin_sir0_resources[] = { 403 403 { ··· 450 450 #endif 451 451 #endif 452 452 453 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 453 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 454 454 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 455 455 456 456 static struct resource bfin_twi0_resource[] = { ··· 477 477 }; 478 478 #endif 479 479 480 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 480 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 481 481 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 482 482 static struct resource bfin_sport0_uart_resources[] = { 483 483 { ··· 548 548 #endif 549 549 #endif 550 550 551 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 551 + #if IS_ENABLED(CONFIG_BFIN_MAC) 552 552 #include <linux/bfin_mac.h> 553 553 static const unsigned short bfin_mac_peripherals[] = P_MII0; 554 554 ··· 581 581 }; 582 582 #endif 583 583 584 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 584 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 585 585 #define PATA_INT IRQ_PF14 586 586 587 587 static struct pata_platform_info bfin_pata_platform_data = { ··· 649 649 650 650 &bfin_dpmc, 651 651 652 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 652 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 653 653 &hitachi_fb_device, 654 654 #endif 655 655 656 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 656 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 657 657 &rtc_device, 658 658 #endif 659 659 660 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 660 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 661 661 #ifdef CONFIG_SERIAL_BFIN_UART0 662 662 &bfin_uart0_device, 663 663 #endif ··· 666 666 #endif 667 667 #endif 668 668 669 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 669 + #if IS_ENABLED(CONFIG_BFIN_SIR) 670 670 #ifdef CONFIG_BFIN_SIR0 671 671 &bfin_sir0_device, 672 672 #endif ··· 675 675 #endif 676 676 #endif 677 677 678 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 678 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 679 679 &i2c_bfin_twi_device, 680 680 #endif 681 681 682 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 682 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 683 683 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 684 684 &bfin_sport0_uart_device, 685 685 #endif ··· 688 688 #endif 689 689 #endif 690 690 691 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 691 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 692 692 &isp1362_hcd_device, 693 693 #endif 694 694 695 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 695 + #if IS_ENABLED(CONFIG_SMC91X) 696 696 &smc91x_device, 697 697 #endif 698 698 699 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 699 + #if IS_ENABLED(CONFIG_BFIN_MAC) 700 700 &bfin_mii_bus, 701 701 &bfin_mac_device, 702 702 #endif 703 703 704 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 704 + #if IS_ENABLED(CONFIG_USB_NET2272) 705 705 &net2272_bfin_device, 706 706 #endif 707 707 708 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 708 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 709 709 &bfin_spi0_device, 710 710 #endif 711 711 712 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 712 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 713 713 &bfin_pata_device, 714 714 #endif 715 715 716 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 716 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 717 717 &cm_flash_device, 718 718 #endif 719 719 }; 720 720 721 721 static int __init net2272_init(void) 722 722 { 723 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 723 + #if IS_ENABLED(CONFIG_USB_NET2272) 724 724 int ret; 725 725 726 726 ret = gpio_request(GPIO_PH15, driver_name); ··· 752 752 { 753 753 printk(KERN_INFO "%s(): registering device resources\n", __func__); 754 754 platform_add_devices(cm_bf537u_devices, ARRAY_SIZE(cm_bf537u_devices)); 755 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 755 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 756 756 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 757 757 #endif 758 758 759 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 759 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 760 760 irq_set_status_flags(PATA_INT, IRQ_NOAUTOEN); 761 761 #endif 762 762
+16 -16
arch/blackfin/mach-bf537/boards/dnp5370.c
··· 41 41 #define FLASH_MAC 0x202f0000 42 42 #define CONFIG_MTD_PHYSMAP_LEN 0x300000 43 43 44 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 44 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 45 45 static struct platform_device rtc_device = { 46 46 .name = "rtc-bfin", 47 47 .id = -1, 48 48 }; 49 49 #endif 50 50 51 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 51 + #if IS_ENABLED(CONFIG_BFIN_MAC) 52 52 #include <linux/bfin_mac.h> 53 53 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 54 54 ··· 81 81 }; 82 82 #endif 83 83 84 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 84 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 85 85 static struct mtd_partition asmb_flash_partitions[] = { 86 86 { 87 87 .name = "bootloader(nor)", ··· 125 125 }; 126 126 #endif 127 127 128 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 128 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 129 129 130 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 130 + #if IS_ENABLED(CONFIG_MMC_SPI) 131 131 132 132 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 133 133 .enable_dma = 0, /* use no dma transfer with this chip*/ ··· 135 135 136 136 #endif 137 137 138 - #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) 138 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 139 139 /* This mapping is for at45db642 it has 1056 page size, 140 140 * partition size and offset should be page aligned 141 141 */ ··· 166 166 167 167 static struct spi_board_info bfin_spi_board_info[] __initdata = { 168 168 /* SD/MMC card reader at SPI bus */ 169 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 169 + #if IS_ENABLED(CONFIG_MMC_SPI) 170 170 { 171 171 .modalias = "mmc_spi", 172 172 .max_speed_hz = 20000000, ··· 178 178 #endif 179 179 180 180 /* 8 Megabyte Atmel NOR flash chip at SPI bus */ 181 - #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) 181 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 182 182 { 183 183 .modalias = "mtd_dataflash", 184 184 .max_speed_hz = 16700000, ··· 228 228 }; 229 229 #endif 230 230 231 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 231 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 232 232 #ifdef CONFIG_SERIAL_BFIN_UART0 233 233 static struct resource bfin_uart0_resources[] = { 234 234 { ··· 328 328 #endif 329 329 #endif 330 330 331 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 331 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 332 332 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 333 333 334 334 static struct resource bfin_twi0_resource[] = { ··· 357 357 358 358 static struct platform_device *dnp5370_devices[] __initdata = { 359 359 360 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 360 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 361 361 #ifdef CONFIG_SERIAL_BFIN_UART0 362 362 &bfin_uart0_device, 363 363 #endif ··· 366 366 #endif 367 367 #endif 368 368 369 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 369 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 370 370 &asmb_flash_device, 371 371 #endif 372 372 373 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 373 + #if IS_ENABLED(CONFIG_BFIN_MAC) 374 374 &bfin_mii_bus, 375 375 &bfin_mac_device, 376 376 #endif 377 377 378 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 378 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 379 379 &spi_bfin_master_device, 380 380 #endif 381 381 382 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 382 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 383 383 &i2c_bfin_twi_device, 384 384 #endif 385 385 386 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 386 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 387 387 &rtc_device, 388 388 #endif 389 389
+24 -26
arch/blackfin/mach-bf537/boards/minotaur.c
··· 13 13 #include <linux/mtd/partitions.h> 14 14 #include <linux/spi/spi.h> 15 15 #include <linux/spi/flash.h> 16 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 16 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 17 17 #include <linux/usb/isp1362.h> 18 18 #endif 19 19 #include <linux/ata_platform.h> ··· 31 31 */ 32 32 const char bfin_board_name[] = "CamSig Minotaur BF537"; 33 33 34 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 34 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 35 35 static struct resource bfin_pcmcia_cf_resources[] = { 36 36 { 37 37 .start = 0x20310000, /* IO PORT */ ··· 60 60 }; 61 61 #endif 62 62 63 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 63 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 64 64 static struct platform_device rtc_device = { 65 65 .name = "rtc-bfin", 66 66 .id = -1, 67 67 }; 68 68 #endif 69 69 70 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 70 + #if IS_ENABLED(CONFIG_BFIN_MAC) 71 71 #include <linux/bfin_mac.h> 72 72 static const unsigned short bfin_mac_peripherals[] = P_MII0; 73 73 ··· 100 100 }; 101 101 #endif 102 102 103 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 103 + #if IS_ENABLED(CONFIG_USB_NET2272) 104 104 static struct resource net2272_bfin_resources[] = { 105 105 { 106 106 .start = 0x20300000, ··· 121 121 }; 122 122 #endif 123 123 124 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 124 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 125 125 /* all SPI peripherals info goes here */ 126 126 127 - #if defined(CONFIG_MTD_M25P80) \ 128 - || defined(CONFIG_MTD_M25P80_MODULE) 127 + #if IS_ENABLED(CONFIG_MTD_M25P80) 129 128 130 129 /* Partition sizes */ 131 130 #define FLASH_SIZE 0x00400000 ··· 161 162 }; 162 163 #endif 163 164 164 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 165 + #if IS_ENABLED(CONFIG_MMC_SPI) 165 166 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 166 167 .enable_dma = 0, 167 168 }; 168 169 #endif 169 170 170 171 static struct spi_board_info bfin_spi_board_info[] __initdata = { 171 - #if defined(CONFIG_MTD_M25P80) \ 172 - || defined(CONFIG_MTD_M25P80_MODULE) 172 + #if IS_ENABLED(CONFIG_MTD_M25P80) 173 173 { 174 174 /* the modalias must be the same as spi device driver name */ 175 175 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 181 183 }, 182 184 #endif 183 185 184 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 186 + #if IS_ENABLED(CONFIG_MMC_SPI) 185 187 { 186 188 .modalias = "mmc_spi", 187 189 .max_speed_hz = 5000000, /* max spi clock (SCK) speed in HZ */ ··· 229 231 }; 230 232 #endif /* spi master and devices */ 231 233 232 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 234 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 233 235 #ifdef CONFIG_SERIAL_BFIN_UART0 234 236 static struct resource bfin_uart0_resources[] = { 235 237 { ··· 328 330 #endif 329 331 #endif 330 332 331 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 333 + #if IS_ENABLED(CONFIG_BFIN_SIR) 332 334 #ifdef CONFIG_BFIN_SIR0 333 335 static struct resource bfin_sir0_resources[] = { 334 336 { ··· 383 385 #endif 384 386 #endif 385 387 386 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 388 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 387 389 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 388 390 389 391 static struct resource bfin_twi0_resource[] = { ··· 410 412 }; 411 413 #endif 412 414 413 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 415 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 414 416 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 415 417 static struct resource bfin_sport0_uart_resources[] = { 416 418 { ··· 482 484 #endif 483 485 484 486 static struct platform_device *minotaur_devices[] __initdata = { 485 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 487 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 486 488 &bfin_pcmcia_cf_device, 487 489 #endif 488 490 489 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 491 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 490 492 &rtc_device, 491 493 #endif 492 494 493 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 495 + #if IS_ENABLED(CONFIG_BFIN_MAC) 494 496 &bfin_mii_bus, 495 497 &bfin_mac_device, 496 498 #endif 497 499 498 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 500 + #if IS_ENABLED(CONFIG_USB_NET2272) 499 501 &net2272_bfin_device, 500 502 #endif 501 503 502 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 504 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 503 505 &bfin_spi0_device, 504 506 #endif 505 507 506 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 508 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 507 509 #ifdef CONFIG_SERIAL_BFIN_UART0 508 510 &bfin_uart0_device, 509 511 #endif ··· 512 514 #endif 513 515 #endif 514 516 515 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 517 + #if IS_ENABLED(CONFIG_BFIN_SIR) 516 518 #ifdef CONFIG_BFIN_SIR0 517 519 &bfin_sir0_device, 518 520 #endif ··· 521 523 #endif 522 524 #endif 523 525 524 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 526 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 525 527 &i2c_bfin_twi_device, 526 528 #endif 527 529 528 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 530 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 529 531 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 530 532 &bfin_sport0_uart_device, 531 533 #endif ··· 540 542 { 541 543 printk(KERN_INFO "%s(): registering device resources\n", __func__); 542 544 platform_add_devices(minotaur_devices, ARRAY_SIZE(minotaur_devices)); 543 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 545 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 544 546 spi_register_board_info(bfin_spi_board_info, 545 547 ARRAY_SIZE(bfin_spi_board_info)); 546 548 #endif
+26 -29
arch/blackfin/mach-bf537/boards/pnav10.c
··· 30 30 * Driver needs to know address, irq and flag pin. 31 31 */ 32 32 33 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 33 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 34 34 static struct resource bfin_pcmcia_cf_resources[] = { 35 35 { 36 36 .start = 0x20310000, /* IO PORT */ ··· 59 59 }; 60 60 #endif 61 61 62 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 62 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 63 63 static struct platform_device rtc_device = { 64 64 .name = "rtc-bfin", 65 65 .id = -1, 66 66 }; 67 67 #endif 68 68 69 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 69 + #if IS_ENABLED(CONFIG_SMC91X) 70 70 #include <linux/smc91x.h> 71 71 72 72 static struct smc91x_platdata smc91x_info = { ··· 99 99 }; 100 100 #endif 101 101 102 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 102 + #if IS_ENABLED(CONFIG_BFIN_MAC) 103 103 #include <linux/bfin_mac.h> 104 104 static const unsigned short bfin_mac_peripherals[] = P_RMII0; 105 105 ··· 132 132 }; 133 133 #endif 134 134 135 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 135 + #if IS_ENABLED(CONFIG_USB_NET2272) 136 136 static struct resource net2272_bfin_resources[] = { 137 137 { 138 138 .start = 0x20300000, ··· 153 153 }; 154 154 #endif 155 155 156 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 156 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 157 157 /* all SPI peripherals info goes here */ 158 158 159 - #if defined(CONFIG_MTD_M25P80) \ 160 - || defined(CONFIG_MTD_M25P80_MODULE) 159 + #if IS_ENABLED(CONFIG_MTD_M25P80) 161 160 static struct mtd_partition bfin_spi_flash_partitions[] = { 162 161 { 163 162 .name = "bootloader(spi)", ··· 187 188 }; 188 189 #endif 189 190 190 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 191 + #if IS_ENABLED(CONFIG_MMC_SPI) 191 192 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 192 193 .enable_dma = 0, 193 194 }; 194 195 #endif 195 196 196 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 197 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 197 198 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 198 199 .model = 7877, 199 200 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 210 211 #endif 211 212 212 213 static struct spi_board_info bfin_spi_board_info[] __initdata = { 213 - #if defined(CONFIG_MTD_M25P80) \ 214 - || defined(CONFIG_MTD_M25P80_MODULE) 214 + #if IS_ENABLED(CONFIG_MTD_M25P80) 215 215 { 216 216 /* the modalias must be the same as spi device driver name */ 217 217 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 223 225 }, 224 226 #endif 225 227 226 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 227 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 228 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 228 229 { 229 230 .modalias = "ad183x", 230 231 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 231 234 .chip_select = 4, 232 235 }, 233 236 #endif 234 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 237 + #if IS_ENABLED(CONFIG_MMC_SPI) 235 238 { 236 239 .modalias = "mmc_spi", 237 240 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ ··· 241 244 .mode = SPI_MODE_3, 242 245 }, 243 246 #endif 244 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 247 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 245 248 { 246 249 .modalias = "ad7877", 247 250 .platform_data = &bfin_ad7877_ts_info, ··· 291 294 }; 292 295 #endif /* spi master and devices */ 293 296 294 - #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE) 297 + #if IS_ENABLED(CONFIG_FB_BF537_LQ035) 295 298 static struct platform_device bfin_fb_device = { 296 299 .name = "bf537-lq035", 297 300 }; 298 301 #endif 299 302 300 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 303 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 301 304 #ifdef CONFIG_SERIAL_BFIN_UART0 302 305 static struct resource bfin_uart0_resources[] = { 303 306 { ··· 396 399 #endif 397 400 #endif 398 401 399 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 402 + #if IS_ENABLED(CONFIG_BFIN_SIR) 400 403 #ifdef CONFIG_BFIN_SIR0 401 404 static struct resource bfin_sir0_resources[] = { 402 405 { ··· 452 455 #endif 453 456 454 457 static struct platform_device *stamp_devices[] __initdata = { 455 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 458 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 456 459 &bfin_pcmcia_cf_device, 457 460 #endif 458 461 459 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 462 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 460 463 &rtc_device, 461 464 #endif 462 465 463 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 466 + #if IS_ENABLED(CONFIG_SMC91X) 464 467 &smc91x_device, 465 468 #endif 466 469 467 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 470 + #if IS_ENABLED(CONFIG_BFIN_MAC) 468 471 &bfin_mii_bus, 469 472 &bfin_mac_device, 470 473 #endif 471 474 472 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 475 + #if IS_ENABLED(CONFIG_USB_NET2272) 473 476 &net2272_bfin_device, 474 477 #endif 475 478 476 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 479 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 477 480 &bfin_spi0_device, 478 481 #endif 479 482 480 - #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE) 483 + #if IS_ENABLED(CONFIG_FB_BF537_LQ035) 481 484 &bfin_fb_device, 482 485 #endif 483 486 484 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 487 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 485 488 #ifdef CONFIG_SERIAL_BFIN_UART0 486 489 &bfin_uart0_device, 487 490 #endif ··· 490 493 #endif 491 494 #endif 492 495 493 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 496 + #if IS_ENABLED(CONFIG_BFIN_SIR) 494 497 #ifdef CONFIG_BFIN_SIR0 495 498 &bfin_sir0_device, 496 499 #endif ··· 504 507 { 505 508 printk(KERN_INFO "%s(): registering device resources\n", __func__); 506 509 platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); 507 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 510 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 508 511 spi_register_board_info(bfin_spi_board_info, 509 512 ARRAY_SIZE(bfin_spi_board_info)); 510 513 #endif
+190 -235
arch/blackfin/mach-bf537/boards/stamp.c
··· 18 18 #include <linux/mtd/physmap.h> 19 19 #include <linux/spi/spi.h> 20 20 #include <linux/spi/flash.h> 21 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 21 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 22 22 #include <linux/usb/isp1362.h> 23 23 #endif 24 24 #include <linux/i2c.h> ··· 53 53 * Driver needs to know address, irq and flag pin. 54 54 */ 55 55 56 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 56 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 57 57 #include <linux/usb/isp1760.h> 58 58 static struct resource bfin_isp1760_resources[] = { 59 59 [0] = { ··· 88 88 }; 89 89 #endif 90 90 91 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 91 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 92 92 #include <linux/gpio_keys.h> 93 93 94 94 static struct gpio_keys_button bfin_gpio_keys_table[] = { ··· 111 111 }; 112 112 #endif 113 113 114 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 114 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 115 115 static struct resource bfin_pcmcia_cf_resources[] = { 116 116 { 117 117 .start = 0x20310000, /* IO PORT */ ··· 140 140 }; 141 141 #endif 142 142 143 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 143 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 144 144 static struct platform_device rtc_device = { 145 145 .name = "rtc-bfin", 146 146 .id = -1, 147 147 }; 148 148 #endif 149 149 150 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 150 + #if IS_ENABLED(CONFIG_SMC91X) 151 151 #include <linux/smc91x.h> 152 152 153 153 static struct smc91x_platdata smc91x_info = { ··· 180 180 }; 181 181 #endif 182 182 183 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 183 + #if IS_ENABLED(CONFIG_DM9000) 184 184 static struct resource dm9000_resources[] = { 185 185 [0] = { 186 186 .start = 0x203FB800, ··· 207 207 }; 208 208 #endif 209 209 210 - #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) 210 + #if IS_ENABLED(CONFIG_USB_SL811_HCD) 211 211 static struct resource sl811_hcd_resources[] = { 212 212 { 213 213 .start = 0x20340000, ··· 251 251 }; 252 252 #endif 253 253 254 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 254 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 255 255 static struct resource isp1362_hcd_resources[] = { 256 256 { 257 257 .start = 0x20360000, ··· 290 290 }; 291 291 #endif 292 292 293 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 293 + #if IS_ENABLED(CONFIG_CAN_BFIN) 294 294 static unsigned short bfin_can_peripherals[] = { 295 295 P_CAN0_RX, P_CAN0_TX, 0 296 296 }; ··· 328 328 }; 329 329 #endif 330 330 331 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 331 + #if IS_ENABLED(CONFIG_BFIN_MAC) 332 332 #include <linux/bfin_mac.h> 333 333 static const unsigned short bfin_mac_peripherals[] = P_MII0; 334 334 ··· 361 361 }; 362 362 #endif 363 363 364 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 364 + #if IS_ENABLED(CONFIG_USB_NET2272) 365 365 static struct resource net2272_bfin_resources[] = { 366 366 { 367 367 .start = 0x20300000, ··· 385 385 }; 386 386 #endif 387 387 388 - #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) 388 + #if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM) 389 389 const char *part_probes[] = { "cmdlinepart", "RedBoot", NULL }; 390 390 391 391 static struct mtd_partition bfin_plat_nand_partitions[] = { ··· 461 461 static void bfin_plat_nand_init(void) {} 462 462 #endif 463 463 464 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 464 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 465 465 static struct mtd_partition stamp_partitions[] = { 466 466 { 467 467 .name = "bootloader(nor)", ··· 509 509 }; 510 510 #endif 511 511 512 - #if defined(CONFIG_MTD_M25P80) \ 513 - || defined(CONFIG_MTD_M25P80_MODULE) 512 + #if IS_ENABLED(CONFIG_MTD_M25P80) 514 513 static struct mtd_partition bfin_spi_flash_partitions[] = { 515 514 { 516 515 .name = "bootloader(spi)", ··· 540 541 }; 541 542 #endif 542 543 543 - #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) 544 + #if IS_ENABLED(CONFIG_INPUT_AD714X_SPI) 544 545 #include <linux/input/ad714x.h> 545 546 546 547 static struct ad714x_slider_plat ad7147_spi_slider_plat[] = { ··· 601 602 }; 602 603 #endif 603 604 604 - #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE) 605 + #if IS_ENABLED(CONFIG_INPUT_AD714X_I2C) 605 606 #include <linux/input/ad714x.h> 606 607 static struct ad714x_button_plat ad7142_i2c_button_plat[] = { 607 608 { ··· 648 649 }; 649 650 #endif 650 651 651 - #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE) 652 + #if IS_ENABLED(CONFIG_AD2S90) 652 653 static struct bfin5xx_spi_chip ad2s90_spi_chip_info = { 653 654 .enable_dma = 0, 654 655 }; 655 656 #endif 656 657 657 - #if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE) 658 - static unsigned short ad2s120x_platform_data[] = { 658 + #if IS_ENABLED(CONFIG_AD2S1200) 659 + static unsigned short ad2s1200_platform_data[] = { 659 660 /* used as SAMPLE and RDVEL */ 660 661 GPIO_PF5, GPIO_PF6, 0 661 662 }; 662 663 663 - static struct bfin5xx_spi_chip ad2s120x_spi_chip_info = { 664 + static struct bfin5xx_spi_chip ad2s1200_spi_chip_info = { 664 665 .enable_dma = 0, 665 666 }; 666 667 #endif 667 668 668 - #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE) 669 + #if IS_ENABLED(CONFIG_AD2S1210) 669 670 static unsigned short ad2s1210_platform_data[] = { 670 671 /* use as SAMPLE, A0, A1 */ 671 672 GPIO_PF7, GPIO_PF8, GPIO_PF9, ··· 681 682 }; 682 683 #endif 683 684 684 - #if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE) 685 + #if IS_ENABLED(CONFIG_SENSORS_AD7314) 685 686 static struct bfin5xx_spi_chip ad7314_spi_chip_info = { 686 687 .enable_dma = 0, 687 688 }; 688 689 #endif 689 690 690 - #if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE) 691 + #if IS_ENABLED(CONFIG_AD7816) 691 692 static unsigned short ad7816_platform_data[] = { 692 693 GPIO_PF4, /* rdwr_pin */ 693 694 GPIO_PF5, /* convert_pin */ ··· 700 701 }; 701 702 #endif 702 703 703 - #if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE) 704 + #if IS_ENABLED(CONFIG_ADT7310) 704 705 static unsigned long adt7310_platform_data[3] = { 705 706 /* INT bound temperature alarm event. line 1 */ 706 707 IRQ_PG4, IRQF_TRIGGER_LOW, ··· 713 714 }; 714 715 #endif 715 716 716 - #if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE) 717 + #if IS_ENABLED(CONFIG_AD7298) 717 718 static unsigned short ad7298_platform_data[] = { 718 719 GPIO_PF7, /* busy_pin */ 719 720 0, 720 721 }; 721 722 #endif 722 723 723 - #if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE) 724 + #if IS_ENABLED(CONFIG_ADT7316_SPI) 724 725 static unsigned long adt7316_spi_data[2] = { 725 726 IRQF_TRIGGER_LOW, /* interrupt flags */ 726 727 GPIO_PF7, /* ldac_pin, 0 means DAC/LDAC registers control DAC update */ ··· 731 732 }; 732 733 #endif 733 734 734 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 735 + #if IS_ENABLED(CONFIG_MMC_SPI) 735 736 #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 736 737 737 738 static int bfin_mmc_spi_init(struct device *dev, ··· 758 759 }; 759 760 #endif 760 761 761 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 762 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 762 763 #include <linux/spi/ad7877.h> 763 764 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 764 765 .model = 7877, ··· 775 776 }; 776 777 #endif 777 778 778 - #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 779 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 779 780 #include <linux/spi/ad7879.h> 780 781 static const struct ad7879_platform_data bfin_ad7879_ts_info = { 781 782 .model = 7879, /* Model = AD7879 */ ··· 792 793 }; 793 794 #endif 794 795 795 - #if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE) 796 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X) 796 797 #include <linux/input/adxl34x.h> 797 798 static const struct adxl34x_platform_data adxl34x_info = { 798 799 .x_axis_offset = 0, ··· 831 832 }; 832 833 #endif 833 834 834 - #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE) 835 + #if IS_ENABLED(CONFIG_ENC28J60) 835 836 static struct bfin5xx_spi_chip enc28j60_spi_chip_info = { 836 837 .enable_dma = 1, 837 838 }; 838 839 #endif 839 840 840 - #if defined(CONFIG_ADF702X) || defined(CONFIG_ADF702X_MODULE) 841 + #if IS_ENABLED(CONFIG_ADF702X) 841 842 #include <linux/spi/adf702x.h> 842 843 #define TXREG 0x0160A470 843 844 static const u32 adf7021_regs[] = { ··· 879 880 static inline void adf702x_mac_init(void) {} 880 881 #endif 881 882 882 - #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) 883 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_ADS7846) 883 884 #include <linux/spi/ads7846.h> 884 885 static int ads7873_get_pendown_state(void) 885 886 { ··· 898 899 }; 899 900 #endif 900 901 901 - #if defined(CONFIG_MTD_DATAFLASH) \ 902 - || defined(CONFIG_MTD_DATAFLASH_MODULE) 902 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 903 903 904 904 static struct mtd_partition bfin_spi_dataflash_partitions[] = { 905 905 { ··· 929 931 }; 930 932 #endif 931 933 932 - #if defined(CONFIG_AD7476) || defined(CONFIG_AD7476_MODULE) 934 + #if IS_ENABLED(CONFIG_AD7476) 933 935 static struct bfin5xx_spi_chip spi_ad7476_chip_info = { 934 936 .enable_dma = 0, /* use dma transfer with this chip*/ 935 937 }; 936 938 #endif 937 939 938 940 static struct spi_board_info bfin_spi_board_info[] __initdata = { 939 - #if defined(CONFIG_MTD_M25P80) \ 940 - || defined(CONFIG_MTD_M25P80_MODULE) 941 + #if IS_ENABLED(CONFIG_MTD_M25P80) 941 942 { 942 943 /* the modalias must be the same as spi device driver name */ 943 944 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 948 951 .mode = SPI_MODE_3, 949 952 }, 950 953 #endif 951 - #if defined(CONFIG_MTD_DATAFLASH) \ 952 - || defined(CONFIG_MTD_DATAFLASH_MODULE) 954 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 953 955 { /* DataFlash chip */ 954 956 .modalias = "mtd_dataflash", 955 957 .max_speed_hz = 33250000, /* max spi clock (SCK) speed in HZ */ ··· 960 964 }, 961 965 #endif 962 966 963 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 964 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 967 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 965 968 { 966 969 .modalias = "ad1836", 967 970 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 981 986 }, 982 987 #endif 983 988 984 - #if defined(CONFIG_SND_SOC_ADAV80X) || defined(CONFIG_SND_SOC_ADV80X_MODULE) 989 + #if IS_ENABLED(CONFIG_SND_SOC_ADAV80X) 985 990 { 986 991 .modalias = "adav801", 987 992 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 991 996 }, 992 997 #endif 993 998 994 - #if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE) 999 + #if IS_ENABLED(CONFIG_INPUT_AD714X_SPI) 995 1000 { 996 1001 .modalias = "ad714x_captouch", 997 1002 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1003 1008 }, 1004 1009 #endif 1005 1010 1006 - #if defined(CONFIG_AD2S90) || defined(CONFIG_AD2S90_MODULE) 1011 + #if IS_ENABLED(CONFIG_AD2S90) 1007 1012 { 1008 1013 .modalias = "ad2s90", 1009 1014 .bus_num = 0, ··· 1014 1019 }, 1015 1020 #endif 1016 1021 1017 - #if defined(CONFIG_AD2S120X) || defined(CONFIG_AD2S120X_MODULE) 1022 + #if IS_ENABLED(CONFIG_AD2S1200) 1018 1023 { 1019 - .modalias = "ad2s120x", 1024 + .modalias = "ad2s1200", 1020 1025 .bus_num = 0, 1021 1026 .chip_select = 4, /* CS, change it for your board */ 1022 - .platform_data = ad2s120x_platform_data, 1023 - .controller_data = &ad2s120x_spi_chip_info, 1027 + .platform_data = ad2s1200_platform_data, 1028 + .controller_data = &ad2s1200_spi_chip_info, 1024 1029 }, 1025 1030 #endif 1026 1031 1027 - #if defined(CONFIG_AD2S1210) || defined(CONFIG_AD2S1210_MODULE) 1032 + #if IS_ENABLED(CONFIG_AD2S1210) 1028 1033 { 1029 1034 .modalias = "ad2s1210", 1030 1035 .max_speed_hz = 8192000, ··· 1035 1040 }, 1036 1041 #endif 1037 1042 1038 - #if defined(CONFIG_AD7314) || defined(CONFIG_AD7314_MODULE) 1043 + #if IS_ENABLED(CONFIG_SENSORS_AD7314) 1039 1044 { 1040 1045 .modalias = "ad7314", 1041 1046 .max_speed_hz = 1000000, ··· 1046 1051 }, 1047 1052 #endif 1048 1053 1049 - #if defined(CONFIG_AD7816) || defined(CONFIG_AD7816_MODULE) 1054 + #if IS_ENABLED(CONFIG_AD7816) 1050 1055 { 1051 1056 .modalias = "ad7818", 1052 1057 .max_speed_hz = 1000000, ··· 1058 1063 }, 1059 1064 #endif 1060 1065 1061 - #if defined(CONFIG_ADT7310) || defined(CONFIG_ADT7310_MODULE) 1066 + #if IS_ENABLED(CONFIG_ADT7310) 1062 1067 { 1063 1068 .modalias = "adt7310", 1064 1069 .max_speed_hz = 1000000, ··· 1071 1076 }, 1072 1077 #endif 1073 1078 1074 - #if defined(CONFIG_AD7298) || defined(CONFIG_AD7298_MODULE) 1079 + #if IS_ENABLED(CONFIG_AD7298) 1075 1080 { 1076 1081 .modalias = "ad7298", 1077 1082 .max_speed_hz = 1000000, ··· 1082 1087 }, 1083 1088 #endif 1084 1089 1085 - #if defined(CONFIG_ADT7316_SPI) || defined(CONFIG_ADT7316_SPI_MODULE) 1090 + #if IS_ENABLED(CONFIG_ADT7316_SPI) 1086 1091 { 1087 1092 .modalias = "adt7316", 1088 1093 .max_speed_hz = 1000000, ··· 1095 1100 }, 1096 1101 #endif 1097 1102 1098 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 1103 + #if IS_ENABLED(CONFIG_MMC_SPI) 1099 1104 { 1100 1105 .modalias = "mmc_spi", 1101 1106 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 1106 1111 .mode = SPI_MODE_3, 1107 1112 }, 1108 1113 #endif 1109 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 1114 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 1110 1115 { 1111 1116 .modalias = "ad7877", 1112 1117 .platform_data = &bfin_ad7877_ts_info, ··· 1116 1121 .chip_select = 1, 1117 1122 }, 1118 1123 #endif 1119 - #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) 1124 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) 1120 1125 { 1121 1126 .modalias = "ad7879", 1122 1127 .platform_data = &bfin_ad7879_ts_info, ··· 1127 1132 .mode = SPI_CPHA | SPI_CPOL, 1128 1133 }, 1129 1134 #endif 1130 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 1135 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 1131 1136 { 1132 1137 .modalias = "spidev", 1133 1138 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 1135 1140 .chip_select = 1, 1136 1141 }, 1137 1142 #endif 1138 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 1143 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 1139 1144 { 1140 1145 .modalias = "bfin-lq035q1-spi", 1141 1146 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 1144 1149 .mode = SPI_CPHA | SPI_CPOL, 1145 1150 }, 1146 1151 #endif 1147 - #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE) 1152 + #if IS_ENABLED(CONFIG_ENC28J60) 1148 1153 { 1149 1154 .modalias = "enc28j60", 1150 1155 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 1155 1160 .mode = SPI_MODE_0, 1156 1161 }, 1157 1162 #endif 1158 - #if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE) 1163 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_SPI) 1159 1164 { 1160 1165 .modalias = "adxl34x", 1161 1166 .platform_data = &adxl34x_info, ··· 1166 1171 .mode = SPI_MODE_3, 1167 1172 }, 1168 1173 #endif 1169 - #if defined(CONFIG_ADF702X) || defined(CONFIG_ADF702X_MODULE) 1174 + #if IS_ENABLED(CONFIG_ADF702X) 1170 1175 { 1171 1176 .modalias = "adf702x", 1172 1177 .max_speed_hz = 16000000, /* max spi clock (SCK) speed in HZ */ ··· 1176 1181 .mode = SPI_MODE_0, 1177 1182 }, 1178 1183 #endif 1179 - #if defined(CONFIG_TOUCHSCREEN_ADS7846) || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) 1184 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_ADS7846) 1180 1185 { 1181 1186 .modalias = "ads7846", 1182 1187 .max_speed_hz = 2000000, /* max spi clock (SCK) speed in HZ */ ··· 1187 1192 .mode = SPI_MODE_0, 1188 1193 }, 1189 1194 #endif 1190 - #if defined(CONFIG_AD7476) \ 1191 - || defined(CONFIG_AD7476_MODULE) 1195 + #if IS_ENABLED(CONFIG_AD7476) 1192 1196 { 1193 1197 .modalias = "ad7476", /* Name of spi_driver for this device */ 1194 1198 .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ ··· 1198 1204 .mode = SPI_MODE_3, 1199 1205 }, 1200 1206 #endif 1201 - #if defined(CONFIG_ADE7753) \ 1202 - || defined(CONFIG_ADE7753_MODULE) 1207 + #if IS_ENABLED(CONFIG_ADE7753) 1203 1208 { 1204 1209 .modalias = "ade7753", 1205 1210 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1208 1215 .mode = SPI_MODE_1, 1209 1216 }, 1210 1217 #endif 1211 - #if defined(CONFIG_ADE7754) \ 1212 - || defined(CONFIG_ADE7754_MODULE) 1218 + #if IS_ENABLED(CONFIG_ADE7754) 1213 1219 { 1214 1220 .modalias = "ade7754", 1215 1221 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1218 1226 .mode = SPI_MODE_1, 1219 1227 }, 1220 1228 #endif 1221 - #if defined(CONFIG_ADE7758) \ 1222 - || defined(CONFIG_ADE7758_MODULE) 1229 + #if IS_ENABLED(CONFIG_ADE7758) 1223 1230 { 1224 1231 .modalias = "ade7758", 1225 1232 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1228 1237 .mode = SPI_MODE_1, 1229 1238 }, 1230 1239 #endif 1231 - #if defined(CONFIG_ADE7759) \ 1232 - || defined(CONFIG_ADE7759_MODULE) 1240 + #if IS_ENABLED(CONFIG_ADE7759) 1233 1241 { 1234 1242 .modalias = "ade7759", 1235 1243 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1238 1248 .mode = SPI_MODE_1, 1239 1249 }, 1240 1250 #endif 1241 - #if defined(CONFIG_ADE7854_SPI) \ 1242 - || defined(CONFIG_ADE7854_SPI_MODULE) 1251 + #if IS_ENABLED(CONFIG_ADE7854_SPI) 1243 1252 { 1244 1253 .modalias = "ade7854", 1245 1254 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1248 1259 .mode = SPI_MODE_3, 1249 1260 }, 1250 1261 #endif 1251 - #if defined(CONFIG_ADIS16060) \ 1252 - || defined(CONFIG_ADIS16060_MODULE) 1262 + #if IS_ENABLED(CONFIG_ADIS16060) 1253 1263 { 1254 1264 .modalias = "adis16060_r", 1255 1265 .max_speed_hz = 2900000, /* max spi clock (SCK) speed in HZ */ ··· 1266 1278 .mode = SPI_MODE_1, 1267 1279 }, 1268 1280 #endif 1269 - #if defined(CONFIG_ADIS16130) \ 1270 - || defined(CONFIG_ADIS16130_MODULE) 1281 + #if IS_ENABLED(CONFIG_ADIS16130) 1271 1282 { 1272 1283 .modalias = "adis16130", 1273 1284 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1276 1289 .mode = SPI_MODE_3, 1277 1290 }, 1278 1291 #endif 1279 - #if defined(CONFIG_ADIS16201) \ 1280 - || defined(CONFIG_ADIS16201_MODULE) 1292 + #if IS_ENABLED(CONFIG_ADIS16201) 1281 1293 { 1282 1294 .modalias = "adis16201", 1283 1295 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1287 1301 .irq = IRQ_PF4, 1288 1302 }, 1289 1303 #endif 1290 - #if defined(CONFIG_ADIS16203) \ 1291 - || defined(CONFIG_ADIS16203_MODULE) 1304 + #if IS_ENABLED(CONFIG_ADIS16203) 1292 1305 { 1293 1306 .modalias = "adis16203", 1294 1307 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1298 1313 .irq = IRQ_PF4, 1299 1314 }, 1300 1315 #endif 1301 - #if defined(CONFIG_ADIS16204) \ 1302 - || defined(CONFIG_ADIS16204_MODULE) 1316 + #if IS_ENABLED(CONFIG_ADIS16204) 1303 1317 { 1304 1318 .modalias = "adis16204", 1305 1319 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1309 1325 .irq = IRQ_PF4, 1310 1326 }, 1311 1327 #endif 1312 - #if defined(CONFIG_ADIS16209) \ 1313 - || defined(CONFIG_ADIS16209_MODULE) 1328 + #if IS_ENABLED(CONFIG_ADIS16209) 1314 1329 { 1315 1330 .modalias = "adis16209", 1316 1331 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1320 1337 .irq = IRQ_PF4, 1321 1338 }, 1322 1339 #endif 1323 - #if defined(CONFIG_ADIS16220) \ 1324 - || defined(CONFIG_ADIS16220_MODULE) 1340 + #if IS_ENABLED(CONFIG_ADIS16220) 1325 1341 { 1326 1342 .modalias = "adis16220", 1327 1343 .max_speed_hz = 2000000, /* max spi clock (SCK) speed in HZ */ ··· 1331 1349 .irq = IRQ_PF4, 1332 1350 }, 1333 1351 #endif 1334 - #if defined(CONFIG_ADIS16240) \ 1335 - || defined(CONFIG_ADIS16240_MODULE) 1352 + #if IS_ENABLED(CONFIG_ADIS16240) 1336 1353 { 1337 1354 .modalias = "adis16240", 1338 1355 .max_speed_hz = 1500000, /* max spi clock (SCK) speed in HZ */ ··· 1342 1361 .irq = IRQ_PF4, 1343 1362 }, 1344 1363 #endif 1345 - #if defined(CONFIG_ADIS16260) \ 1346 - || defined(CONFIG_ADIS16260_MODULE) 1364 + #if IS_ENABLED(CONFIG_ADIS16260) 1347 1365 { 1348 1366 .modalias = "adis16260", 1349 1367 .max_speed_hz = 1500000, /* max spi clock (SCK) speed in HZ */ ··· 1353 1373 .irq = IRQ_PF4, 1354 1374 }, 1355 1375 #endif 1356 - #if defined(CONFIG_ADIS16261) \ 1357 - || defined(CONFIG_ADIS16261_MODULE) 1376 + #if IS_ENABLED(CONFIG_ADIS16261) 1358 1377 { 1359 1378 .modalias = "adis16261", 1360 1379 .max_speed_hz = 2500000, /* max spi clock (SCK) speed in HZ */ ··· 1363 1384 .mode = SPI_MODE_3, 1364 1385 }, 1365 1386 #endif 1366 - #if defined(CONFIG_ADIS16300) \ 1367 - || defined(CONFIG_ADIS16300_MODULE) 1387 + #if IS_ENABLED(CONFIG_ADIS16300) 1368 1388 { 1369 1389 .modalias = "adis16300", 1370 1390 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1374 1396 .irq = IRQ_PF4, 1375 1397 }, 1376 1398 #endif 1377 - #if defined(CONFIG_ADIS16350) \ 1378 - || defined(CONFIG_ADIS16350_MODULE) 1399 + #if IS_ENABLED(CONFIG_ADIS16350) 1379 1400 { 1380 1401 .modalias = "adis16364", 1381 1402 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1385 1408 .irq = IRQ_PF4, 1386 1409 }, 1387 1410 #endif 1388 - #if defined(CONFIG_ADIS16400) \ 1389 - || defined(CONFIG_ADIS16400_MODULE) 1411 + #if IS_ENABLED(CONFIG_ADIS16400) 1390 1412 { 1391 1413 .modalias = "adis16400", 1392 1414 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ ··· 1397 1421 #endif 1398 1422 }; 1399 1423 1400 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 1424 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 1401 1425 /* SPI controller data */ 1402 1426 static struct bfin5xx_spi_master bfin_spi0_info = { 1403 1427 .num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS, ··· 1435 1459 }; 1436 1460 #endif /* spi master and devices */ 1437 1461 1438 - #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE) 1462 + #if IS_ENABLED(CONFIG_SPI_BFIN_SPORT) 1439 1463 1440 1464 /* SPORT SPI controller data */ 1441 1465 static struct bfin5xx_spi_master bfin_sport_spi0_info = { ··· 1500 1524 1501 1525 #endif /* sport spi master and devices */ 1502 1526 1503 - #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE) 1527 + #if IS_ENABLED(CONFIG_FB_BF537_LQ035) 1504 1528 static struct platform_device bfin_fb_device = { 1505 1529 .name = "bf537_lq035", 1506 1530 }; 1507 1531 #endif 1508 1532 1509 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 1533 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 1510 1534 #include <asm/bfin-lq035q1.h> 1511 1535 1512 1536 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { ··· 1535 1559 }; 1536 1560 #endif 1537 1561 1538 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 1539 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 1562 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 1540 1563 #include <linux/videodev2.h> 1541 1564 #include <media/blackfin/bfin_capture.h> 1542 1565 #include <media/blackfin/ppi.h> ··· 1555 1580 .pin_req = ppi_req, 1556 1581 }; 1557 1582 1558 - #if defined(CONFIG_VIDEO_VS6624) \ 1559 - || defined(CONFIG_VIDEO_VS6624_MODULE) 1583 + #if IS_ENABLED(CONFIG_VIDEO_VS6624) 1560 1584 static struct v4l2_input vs6624_inputs[] = { 1561 1585 { 1562 1586 .index = 0, ··· 1598 1624 }; 1599 1625 #endif 1600 1626 1601 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 1627 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 1602 1628 #ifdef CONFIG_SERIAL_BFIN_UART0 1603 1629 static struct resource bfin_uart0_resources[] = { 1604 1630 { ··· 1709 1735 #endif 1710 1736 #endif 1711 1737 1712 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 1738 + #if IS_ENABLED(CONFIG_BFIN_SIR) 1713 1739 #ifdef CONFIG_BFIN_SIR0 1714 1740 static struct resource bfin_sir0_resources[] = { 1715 1741 { ··· 1764 1790 #endif 1765 1791 #endif 1766 1792 1767 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1793 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1768 1794 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 1769 1795 1770 1796 static struct resource bfin_twi0_resource[] = { ··· 1791 1817 }; 1792 1818 #endif 1793 1819 1794 - #if defined(CONFIG_KEYBOARD_ADP5588) || defined(CONFIG_KEYBOARD_ADP5588_MODULE) 1820 + #if IS_ENABLED(CONFIG_KEYBOARD_ADP5588) 1795 1821 static const unsigned short adp5588_keymap[ADP5588_KEYMAPSIZE] = { 1796 1822 [0] = KEY_GRAVE, 1797 1823 [1] = KEY_1, ··· 1876 1902 }; 1877 1903 #endif 1878 1904 1879 - #if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE) 1905 + #if IS_ENABLED(CONFIG_PMIC_ADP5520) 1880 1906 #include <linux/mfd/adp5520.h> 1881 1907 1882 1908 /* ··· 1987 2013 1988 2014 #endif 1989 2015 1990 - #if defined(CONFIG_GPIO_ADP5588) || defined(CONFIG_GPIO_ADP5588_MODULE) 2016 + #if IS_ENABLED(CONFIG_GPIO_ADP5588) 1991 2017 static struct adp5588_gpio_platform_data adp5588_gpio_data = { 1992 2018 .gpio_start = 50, 1993 2019 .pullup_dis_mask = 0, 1994 2020 }; 1995 2021 #endif 1996 2022 1997 - #if defined(CONFIG_BACKLIGHT_ADP8870) || defined(CONFIG_BACKLIGHT_ADP8870_MODULE) 2023 + #if IS_ENABLED(CONFIG_BACKLIGHT_ADP8870) 1998 2024 #include <linux/i2c/adp8870.h> 1999 2025 static struct led_info adp8870_leds[] = { 2000 2026 { ··· 2046 2072 }; 2047 2073 #endif 2048 2074 2049 - #if defined(CONFIG_BACKLIGHT_ADP8860) || defined(CONFIG_BACKLIGHT_ADP8860_MODULE) 2075 + #if IS_ENABLED(CONFIG_BACKLIGHT_ADP8860) 2050 2076 #include <linux/i2c/adp8860.h> 2051 2077 static struct led_info adp8860_leds[] = { 2052 2078 { ··· 2088 2114 }; 2089 2115 #endif 2090 2116 2091 - #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE) 2117 + #if IS_ENABLED(CONFIG_REGULATOR_AD5398) 2092 2118 static struct regulator_consumer_supply ad5398_consumer = { 2093 2119 .supply = "current", 2094 2120 }; ··· 2103 2129 .consumer_supplies = &ad5398_consumer, 2104 2130 }; 2105 2131 2106 - #if defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER) || \ 2107 - defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER_MODULE) 2132 + #if IS_ENABLED(CONFIG_REGULATOR_VIRTUAL_CONSUMER) 2108 2133 static struct platform_device ad5398_virt_consumer_device = { 2109 2134 .name = "reg-virt-consumer", 2110 2135 .id = 0, ··· 2112 2139 }, 2113 2140 }; 2114 2141 #endif 2115 - #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \ 2116 - defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE) 2142 + #if IS_ENABLED(CONFIG_REGULATOR_USERSPACE_CONSUMER) 2117 2143 static struct regulator_bulk_data ad5398_bulk_data = { 2118 2144 .supply = "current", 2119 2145 }; ··· 2133 2161 #endif 2134 2162 #endif 2135 2163 2136 - #if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE) 2164 + #if IS_ENABLED(CONFIG_ADT7410) 2137 2165 /* INT bound temperature alarm event. line 1 */ 2138 2166 static unsigned long adt7410_platform_data[2] = { 2139 2167 IRQ_PG4, IRQF_TRIGGER_LOW, 2140 2168 }; 2141 2169 #endif 2142 2170 2143 - #if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE) 2171 + #if IS_ENABLED(CONFIG_ADT7316_I2C) 2144 2172 /* INT bound temperature alarm event. line 1 */ 2145 2173 static unsigned long adt7316_i2c_data[2] = { 2146 2174 IRQF_TRIGGER_LOW, /* interrupt flags */ ··· 2155 2183 }, 2156 2184 #endif 2157 2185 2158 - #if defined(CONFIG_SND_SOC_ADAV80X) || defined(CONFIG_SND_SOC_ADAV80X_MODULE) 2186 + #if IS_ENABLED(CONFIG_SND_SOC_ADAV80X) 2159 2187 { 2160 2188 I2C_BOARD_INFO("adav803", 0x10), 2161 2189 }, 2162 2190 #endif 2163 2191 2164 - #if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE) 2192 + #if IS_ENABLED(CONFIG_INPUT_AD714X_I2C) 2165 2193 { 2166 2194 I2C_BOARD_INFO("ad7142_captouch", 0x2C), 2167 2195 .irq = IRQ_PG5, ··· 2169 2197 }, 2170 2198 #endif 2171 2199 2172 - #if defined(CONFIG_AD7150) || defined(CONFIG_AD7150_MODULE) 2200 + #if IS_ENABLED(CONFIG_AD7150) 2173 2201 { 2174 2202 I2C_BOARD_INFO("ad7150", 0x48), 2175 2203 .irq = IRQ_PG5, /* fixme: use real interrupt number */ 2176 2204 }, 2177 2205 #endif 2178 2206 2179 - #if defined(CONFIG_AD7152) || defined(CONFIG_AD7152_MODULE) 2207 + #if IS_ENABLED(CONFIG_AD7152) 2180 2208 { 2181 2209 I2C_BOARD_INFO("ad7152", 0x48), 2182 2210 }, 2183 2211 #endif 2184 2212 2185 - #if defined(CONFIG_AD774X) || defined(CONFIG_AD774X_MODULE) 2213 + #if IS_ENABLED(CONFIG_AD774X) 2186 2214 { 2187 2215 I2C_BOARD_INFO("ad774x", 0x48), 2188 2216 }, 2189 2217 #endif 2190 2218 2191 - #if defined(CONFIG_ADE7854_I2C) || defined(CONFIG_ADE7854_I2C_MODULE) 2219 + #if IS_ENABLED(CONFIG_ADE7854_I2C) 2192 2220 { 2193 2221 I2C_BOARD_INFO("ade7854", 0x38), 2194 2222 }, 2195 2223 #endif 2196 2224 2197 - #if defined(CONFIG_ADT75) || defined(CONFIG_ADT75_MODULE) 2225 + #if IS_ENABLED(CONFIG_SENSORS_LM75) 2198 2226 { 2199 2227 I2C_BOARD_INFO("adt75", 0x9), 2200 2228 .irq = IRQ_PG5, 2201 2229 }, 2202 2230 #endif 2203 2231 2204 - #if defined(CONFIG_ADT7410) || defined(CONFIG_ADT7410_MODULE) 2232 + #if IS_ENABLED(CONFIG_ADT7410) 2205 2233 { 2206 2234 I2C_BOARD_INFO("adt7410", 0x48), 2207 2235 /* CT critical temperature event. line 0 */ ··· 2210 2238 }, 2211 2239 #endif 2212 2240 2213 - #if defined(CONFIG_AD7291) || defined(CONFIG_AD7291_MODULE) 2241 + #if IS_ENABLED(CONFIG_AD7291) 2214 2242 { 2215 2243 I2C_BOARD_INFO("ad7291", 0x20), 2216 2244 .irq = IRQ_PG5, 2217 2245 }, 2218 2246 #endif 2219 2247 2220 - #if defined(CONFIG_ADT7316_I2C) || defined(CONFIG_ADT7316_I2C_MODULE) 2248 + #if IS_ENABLED(CONFIG_ADT7316_I2C) 2221 2249 { 2222 2250 I2C_BOARD_INFO("adt7316", 0x48), 2223 2251 .irq = IRQ_PG6, ··· 2225 2253 }, 2226 2254 #endif 2227 2255 2228 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 2256 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 2229 2257 { 2230 2258 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 2231 2259 }, 2232 2260 #endif 2233 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 2261 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 2234 2262 { 2235 2263 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 2236 2264 .irq = IRQ_PG6, 2237 2265 }, 2238 2266 #endif 2239 - #if defined(CONFIG_TOUCHSCREEN_AD7879_I2C) || defined(CONFIG_TOUCHSCREEN_AD7879_I2C_MODULE) 2267 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_I2C) 2240 2268 { 2241 2269 I2C_BOARD_INFO("ad7879", 0x2F), 2242 2270 .irq = IRQ_PG5, 2243 2271 .platform_data = (void *)&bfin_ad7879_ts_info, 2244 2272 }, 2245 2273 #endif 2246 - #if defined(CONFIG_KEYBOARD_ADP5588) || defined(CONFIG_KEYBOARD_ADP5588_MODULE) 2274 + #if IS_ENABLED(CONFIG_KEYBOARD_ADP5588) 2247 2275 { 2248 2276 I2C_BOARD_INFO("adp5588-keys", 0x34), 2249 2277 .irq = IRQ_PG0, 2250 2278 .platform_data = (void *)&adp5588_kpad_data, 2251 2279 }, 2252 2280 #endif 2253 - #if defined(CONFIG_PMIC_ADP5520) || defined(CONFIG_PMIC_ADP5520_MODULE) 2281 + #if IS_ENABLED(CONFIG_PMIC_ADP5520) 2254 2282 { 2255 2283 I2C_BOARD_INFO("pmic-adp5520", 0x32), 2256 2284 .irq = IRQ_PG0, 2257 2285 .platform_data = (void *)&adp5520_pdev_data, 2258 2286 }, 2259 2287 #endif 2260 - #if defined(CONFIG_INPUT_ADXL34X_I2C) || defined(CONFIG_INPUT_ADXL34X_I2C_MODULE) 2288 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C) 2261 2289 { 2262 2290 I2C_BOARD_INFO("adxl34x", 0x53), 2263 2291 .irq = IRQ_PG3, 2264 2292 .platform_data = (void *)&adxl34x_info, 2265 2293 }, 2266 2294 #endif 2267 - #if defined(CONFIG_GPIO_ADP5588) || defined(CONFIG_GPIO_ADP5588_MODULE) 2295 + #if IS_ENABLED(CONFIG_GPIO_ADP5588) 2268 2296 { 2269 2297 I2C_BOARD_INFO("adp5588-gpio", 0x34), 2270 2298 .platform_data = (void *)&adp5588_gpio_data, 2271 2299 }, 2272 2300 #endif 2273 - #if defined(CONFIG_FB_BFIN_7393) || defined(CONFIG_FB_BFIN_7393_MODULE) 2301 + #if IS_ENABLED(CONFIG_FB_BFIN_7393) 2274 2302 { 2275 2303 I2C_BOARD_INFO("bfin-adv7393", 0x2B), 2276 2304 }, 2277 2305 #endif 2278 - #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE) 2306 + #if IS_ENABLED(CONFIG_FB_BF537_LQ035) 2279 2307 { 2280 2308 I2C_BOARD_INFO("bf537-lq035-ad5280", 0x2F), 2281 2309 }, 2282 2310 #endif 2283 - #if defined(CONFIG_BACKLIGHT_ADP8870) || defined(CONFIG_BACKLIGHT_ADP8870_MODULE) 2311 + #if IS_ENABLED(CONFIG_BACKLIGHT_ADP8870) 2284 2312 { 2285 2313 I2C_BOARD_INFO("adp8870", 0x2B), 2286 2314 .platform_data = (void *)&adp8870_pdata, 2287 2315 }, 2288 2316 #endif 2289 - #if defined(CONFIG_SND_SOC_ADAU1371) || defined(CONFIG_SND_SOC_ADAU1371_MODULE) 2317 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1371) 2290 2318 { 2291 2319 I2C_BOARD_INFO("adau1371", 0x1A), 2292 2320 }, 2293 2321 #endif 2294 - #if defined(CONFIG_SND_SOC_ADAU1761) || defined(CONFIG_SND_SOC_ADAU1761_MODULE) 2322 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1761) 2295 2323 { 2296 2324 I2C_BOARD_INFO("adau1761", 0x38), 2297 2325 }, 2298 2326 #endif 2299 - #if defined(CONFIG_SND_SOC_ADAU1361) || defined(CONFIG_SND_SOC_ADAU1361_MODULE) 2327 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1361) 2300 2328 { 2301 2329 I2C_BOARD_INFO("adau1361", 0x38), 2302 2330 }, 2303 2331 #endif 2304 - #if defined(CONFIG_SND_SOC_ADAU1701) || defined(CONFIG_SND_SOC_ADAU1701_MODULE) 2332 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1701) 2305 2333 { 2306 2334 I2C_BOARD_INFO("adau1701", 0x34), 2307 2335 }, 2308 2336 #endif 2309 - #if defined(CONFIG_AD525X_DPOT) || defined(CONFIG_AD525X_DPOT_MODULE) 2337 + #if IS_ENABLED(CONFIG_AD525X_DPOT) 2310 2338 { 2311 2339 I2C_BOARD_INFO("ad5258", 0x18), 2312 2340 }, 2313 2341 #endif 2314 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 2342 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 2315 2343 { 2316 2344 I2C_BOARD_INFO("ssm2602", 0x1b), 2317 2345 }, 2318 2346 #endif 2319 - #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE) 2347 + #if IS_ENABLED(CONFIG_REGULATOR_AD5398) 2320 2348 { 2321 2349 I2C_BOARD_INFO("ad5398", 0xC), 2322 2350 .platform_data = (void *)&ad5398_regulator_data, 2323 2351 }, 2324 2352 #endif 2325 - #if defined(CONFIG_BACKLIGHT_ADP8860) || defined(CONFIG_BACKLIGHT_ADP8860_MODULE) 2353 + #if IS_ENABLED(CONFIG_BACKLIGHT_ADP8860) 2326 2354 { 2327 2355 I2C_BOARD_INFO("adp8860", 0x2A), 2328 2356 .platform_data = (void *)&adp8860_pdata, 2329 2357 }, 2330 2358 #endif 2331 - #if defined(CONFIG_SND_SOC_ADAU1373) || defined(CONFIG_SND_SOC_ADAU1373_MODULE) 2359 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1373) 2332 2360 { 2333 2361 I2C_BOARD_INFO("adau1373", 0x1A), 2334 2362 }, 2335 2363 #endif 2336 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 2364 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 2337 2365 { 2338 2366 I2C_BOARD_INFO("ad5252", 0x2e), 2339 2367 }, 2340 2368 #endif 2341 2369 }; 2342 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) \ 2343 - || defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 2370 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) \ 2371 + || IS_ENABLED(CONFIG_BFIN_SPORT) 2344 2372 unsigned short bfin_sport0_peripherals[] = { 2345 2373 P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, 2346 2374 P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 2347 2375 }; 2348 2376 #endif 2349 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 2377 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 2350 2378 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 2351 2379 static struct resource bfin_sport0_uart_resources[] = { 2352 2380 { ··· 2411 2439 }; 2412 2440 #endif 2413 2441 #endif 2414 - #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 2442 + #if IS_ENABLED(CONFIG_BFIN_SPORT) 2415 2443 static struct resource bfin_sport0_resources[] = { 2416 2444 { 2417 2445 .start = SPORT0_TCR1, ··· 2454 2482 }, 2455 2483 }; 2456 2484 #endif 2457 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 2485 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 2458 2486 #define CF_IDE_NAND_CARD_USE_HDD_INTERFACE 2459 2487 /* #define CF_IDE_NAND_CARD_USE_CF_IN_COMMON_MEMORY_MODE */ 2460 2488 ··· 2541 2569 }, 2542 2570 }; 2543 2571 2544 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \ 2545 - defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 2572 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) || \ 2573 + IS_ENABLED(CONFIG_SND_BF5XX_AC97) 2546 2574 2547 2575 #define SPORT_REQ(x) \ 2548 2576 [x] = {P_SPORT##x##_TFS, P_SPORT##x##_DTPRI, P_SPORT##x##_TSCLK, \ ··· 2592 2620 }; 2593 2621 #endif 2594 2622 2595 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 2623 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 2596 2624 static struct platform_device bfin_i2s_pcm = { 2597 2625 .name = "bfin-i2s-pcm-audio", 2598 2626 .id = -1, 2599 2627 }; 2600 2628 #endif 2601 2629 2602 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 2630 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 2603 2631 static struct platform_device bfin_ac97_pcm = { 2604 2632 .name = "bfin-ac97-pcm-audio", 2605 2633 .id = -1, 2606 2634 }; 2607 2635 #endif 2608 2636 2609 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 2610 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 2637 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 2611 2638 static const char * const ad1836_link[] = { 2612 2639 "bfin-i2s.0", 2613 2640 "spi0.4", ··· 2620 2649 }; 2621 2650 #endif 2622 2651 2623 - #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ 2624 - defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) 2652 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD73311) 2625 2653 static const unsigned ad73311_gpio[] = { 2626 2654 GPIO_PF4, 2627 2655 }; ··· 2634 2664 }; 2635 2665 #endif 2636 2666 2637 - #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 2667 + #if IS_ENABLED(CONFIG_SND_SOC_AD73311) 2638 2668 static struct platform_device bfin_ad73311_codec_device = { 2639 2669 .name = "ad73311", 2640 2670 .id = -1, 2641 2671 }; 2642 2672 #endif 2643 2673 2644 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) || \ 2645 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X_MODULE) 2674 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) 2646 2675 static struct platform_device bfin_eval_adav801_device = { 2647 2676 .name = "bfin-eval-adav801", 2648 2677 .id = -1, 2649 2678 }; 2650 2679 #endif 2651 2680 2652 - #if defined(CONFIG_SND_BF5XX_SOC_I2S) || defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE) 2681 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_I2S) 2653 2682 static struct platform_device bfin_i2s = { 2654 2683 .name = "bfin-i2s", 2655 2684 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 2660 2691 }; 2661 2692 #endif 2662 2693 2663 - #if defined(CONFIG_SND_BF5XX_SOC_AC97) || defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE) 2694 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AC97) 2664 2695 static struct platform_device bfin_ac97 = { 2665 2696 .name = "bfin-ac97", 2666 2697 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 2672 2703 }; 2673 2704 #endif 2674 2705 2675 - #if defined(CONFIG_REGULATOR_FIXED_VOLTAGE) || defined(CONFIG_REGULATOR_FIXED_VOLTAGE_MODULE) 2706 + #if IS_ENABLED(CONFIG_REGULATOR_FIXED_VOLTAGE) 2676 2707 #define REGULATOR_ADP122 "adp122" 2677 2708 #define REGULATOR_ADP122_UV 2500000 2678 2709 ··· 2710 2741 }, 2711 2742 }; 2712 2743 2713 - #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \ 2714 - defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE) 2744 + #if IS_ENABLED(CONFIG_REGULATOR_USERSPACE_CONSUMER) 2715 2745 static struct regulator_bulk_data adp122_bulk_data = { 2716 2746 .supply = REGULATOR_ADP122, 2717 2747 }; ··· 2731 2763 #endif 2732 2764 #endif 2733 2765 2734 - #if defined(CONFIG_IIO_GPIO_TRIGGER) || \ 2735 - defined(CONFIG_IIO_GPIO_TRIGGER_MODULE) 2766 + #if IS_ENABLED(CONFIG_IIO_GPIO_TRIGGER) 2736 2767 2737 2768 static struct resource iio_gpio_trigger_resources[] = { 2738 2769 [0] = { ··· 2748 2781 }; 2749 2782 #endif 2750 2783 2751 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) || \ 2752 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373_MODULE) 2784 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) 2753 2785 static struct platform_device bf5xx_adau1373_device = { 2754 2786 .name = "bfin-eval-adau1373", 2755 2787 }; 2756 2788 #endif 2757 2789 2758 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \ 2759 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE) 2790 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) 2760 2791 static struct platform_device bf5xx_adau1701_device = { 2761 2792 .name = "bfin-eval-adau1701", 2762 2793 }; ··· 2763 2798 static struct platform_device *stamp_devices[] __initdata = { 2764 2799 2765 2800 &bfin_dpmc, 2766 - #if defined(CONFIG_BFIN_SPORT) || defined(CONFIG_BFIN_SPORT_MODULE) 2801 + #if IS_ENABLED(CONFIG_BFIN_SPORT) 2767 2802 &bfin_sport0_device, 2768 2803 #endif 2769 - #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) 2804 + #if IS_ENABLED(CONFIG_BFIN_CFPCMCIA) 2770 2805 &bfin_pcmcia_cf_device, 2771 2806 #endif 2772 2807 2773 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 2808 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 2774 2809 &rtc_device, 2775 2810 #endif 2776 2811 2777 - #if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE) 2812 + #if IS_ENABLED(CONFIG_USB_SL811_HCD) 2778 2813 &sl811_hcd_device, 2779 2814 #endif 2780 2815 2781 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 2816 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 2782 2817 &isp1362_hcd_device, 2783 2818 #endif 2784 2819 2785 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 2820 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 2786 2821 &bfin_isp1760_device, 2787 2822 #endif 2788 2823 2789 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 2824 + #if IS_ENABLED(CONFIG_SMC91X) 2790 2825 &smc91x_device, 2791 2826 #endif 2792 2827 2793 - #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) 2828 + #if IS_ENABLED(CONFIG_DM9000) 2794 2829 &dm9000_device, 2795 2830 #endif 2796 2831 2797 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 2832 + #if IS_ENABLED(CONFIG_CAN_BFIN) 2798 2833 &bfin_can_device, 2799 2834 #endif 2800 2835 2801 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 2836 + #if IS_ENABLED(CONFIG_BFIN_MAC) 2802 2837 &bfin_mii_bus, 2803 2838 &bfin_mac_device, 2804 2839 #endif 2805 2840 2806 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 2841 + #if IS_ENABLED(CONFIG_USB_NET2272) 2807 2842 &net2272_bfin_device, 2808 2843 #endif 2809 2844 2810 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 2845 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 2811 2846 &bfin_spi0_device, 2812 2847 #endif 2813 2848 2814 - #if defined(CONFIG_SPI_BFIN_SPORT) || defined(CONFIG_SPI_BFIN_SPORT_MODULE) 2849 + #if IS_ENABLED(CONFIG_SPI_BFIN_SPORT) 2815 2850 &bfin_sport_spi0_device, 2816 2851 &bfin_sport_spi1_device, 2817 2852 #endif 2818 2853 2819 - #if defined(CONFIG_FB_BF537_LQ035) || defined(CONFIG_FB_BF537_LQ035_MODULE) 2854 + #if IS_ENABLED(CONFIG_FB_BF537_LQ035) 2820 2855 &bfin_fb_device, 2821 2856 #endif 2822 2857 2823 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 2858 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 2824 2859 &bfin_lq035q1_device, 2825 2860 #endif 2826 2861 2827 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 2828 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 2862 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 2829 2863 &bfin_capture_device, 2830 2864 #endif 2831 2865 2832 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 2866 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 2833 2867 #ifdef CONFIG_SERIAL_BFIN_UART0 2834 2868 &bfin_uart0_device, 2835 2869 #endif ··· 2837 2873 #endif 2838 2874 #endif 2839 2875 2840 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 2876 + #if IS_ENABLED(CONFIG_BFIN_SIR) 2841 2877 #ifdef CONFIG_BFIN_SIR0 2842 2878 &bfin_sir0_device, 2843 2879 #endif ··· 2846 2882 #endif 2847 2883 #endif 2848 2884 2849 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 2885 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 2850 2886 &i2c_bfin_twi_device, 2851 2887 #endif 2852 2888 2853 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 2889 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 2854 2890 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 2855 2891 &bfin_sport0_uart_device, 2856 2892 #endif ··· 2859 2895 #endif 2860 2896 #endif 2861 2897 2862 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 2898 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 2863 2899 &bfin_pata_device, 2864 2900 #endif 2865 2901 2866 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 2902 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 2867 2903 &bfin_device_gpiokeys, 2868 2904 #endif 2869 2905 2870 - #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) 2906 + #if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM) 2871 2907 &bfin_async_nand_device, 2872 2908 #endif 2873 2909 2874 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 2910 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 2875 2911 &stamp_flash_device, 2876 2912 #endif 2877 2913 2878 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 2914 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 2879 2915 &bfin_i2s_pcm, 2880 2916 #endif 2881 2917 2882 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 2918 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 2883 2919 &bfin_ac97_pcm, 2884 2920 #endif 2885 2921 2886 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 2887 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 2922 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 2888 2923 &bfin_ad1836_machine, 2889 2924 #endif 2890 2925 2891 - #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \ 2892 - defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) 2926 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD73311) 2893 2927 &bfin_ad73311_machine, 2894 2928 #endif 2895 2929 2896 - #if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 2930 + #if IS_ENABLED(CONFIG_SND_SOC_AD73311) 2897 2931 &bfin_ad73311_codec_device, 2898 2932 #endif 2899 2933 2900 - #if defined(CONFIG_SND_BF5XX_SOC_I2S) || defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE) 2934 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_I2S) 2901 2935 &bfin_i2s, 2902 2936 #endif 2903 2937 2904 - #if defined(CONFIG_SND_BF5XX_SOC_AC97) || defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE) 2938 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AC97) 2905 2939 &bfin_ac97, 2906 2940 #endif 2907 2941 2908 - #if defined(CONFIG_REGULATOR_AD5398) || defined(CONFIG_REGULATOR_AD5398_MODULE) 2909 - #if defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER) || \ 2910 - defined(CONFIG_REGULATOR_VIRTUAL_CONSUMER_MODULE) 2942 + #if IS_ENABLED(CONFIG_REGULATOR_AD5398) 2943 + #if IS_ENABLED(CONFIG_REGULATOR_VIRTUAL_CONSUMER) 2911 2944 &ad5398_virt_consumer_device, 2912 2945 #endif 2913 - #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \ 2914 - defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE) 2946 + #if IS_ENABLED(CONFIG_REGULATOR_USERSPACE_CONSUMER) 2915 2947 &ad5398_userspace_consumer_device, 2916 2948 #endif 2917 2949 #endif 2918 2950 2919 - #if defined(CONFIG_REGULATOR_FIXED_VOLTAGE) || defined(CONFIG_REGULATOR_FIXED_VOLTAGE_MODULE) 2951 + #if IS_ENABLED(CONFIG_REGULATOR_FIXED_VOLTAGE) 2920 2952 &adp_switch_device, 2921 - #if defined(CONFIG_REGULATOR_USERSPACE_CONSUMER) || \ 2922 - defined(CONFIG_REGULATOR_USERSPACE_CONSUMER_MODULE) 2953 + #if IS_ENABLED(CONFIG_REGULATOR_USERSPACE_CONSUMER) 2923 2954 &adp122_userspace_consumer_device, 2924 2955 #endif 2925 2956 #endif 2926 2957 2927 - #if defined(CONFIG_IIO_GPIO_TRIGGER) || \ 2928 - defined(CONFIG_IIO_GPIO_TRIGGER_MODULE) 2958 + #if IS_ENABLED(CONFIG_IIO_GPIO_TRIGGER) 2929 2959 &iio_gpio_trigger, 2930 2960 #endif 2931 2961 2932 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) || \ 2933 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373_MODULE) 2962 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1373) 2934 2963 &bf5xx_adau1373_device, 2935 2964 #endif 2936 2965 2937 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) || \ 2938 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701_MODULE) 2966 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1701) 2939 2967 &bf5xx_adau1701_device, 2940 2968 #endif 2941 2969 2942 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) || \ 2943 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X_MODULE) 2970 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAV80X) 2944 2971 &bfin_eval_adav801_device, 2945 2972 #endif 2946 2973 }; 2947 2974 2948 2975 static int __init net2272_init(void) 2949 2976 { 2950 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 2977 + #if IS_ENABLED(CONFIG_USB_NET2272) 2951 2978 int ret; 2952 2979 2953 2980 ret = gpio_request(GPIO_PF6, "net2272");
+35 -35
arch/blackfin/mach-bf537/boards/tcm_bf537.c
··· 16 16 #include <linux/mtd/physmap.h> 17 17 #include <linux/spi/spi.h> 18 18 #include <linux/spi/flash.h> 19 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 19 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 20 20 #include <linux/usb/isp1362.h> 21 21 #endif 22 22 #include <linux/ata_platform.h> ··· 32 32 */ 33 33 const char bfin_board_name[] = "Bluetechnix TCM BF537"; 34 34 35 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 35 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 36 36 /* all SPI peripherals info goes here */ 37 37 38 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 38 + #if IS_ENABLED(CONFIG_MTD_M25P80) 39 39 static struct mtd_partition bfin_spi_flash_partitions[] = { 40 40 { 41 41 .name = "bootloader(spi)", ··· 66 66 }; 67 67 #endif 68 68 69 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 69 + #if IS_ENABLED(CONFIG_MMC_SPI) 70 70 static struct bfin5xx_spi_chip mmc_spi_chip_info = { 71 71 .enable_dma = 0, 72 72 }; 73 73 #endif 74 74 75 75 static struct spi_board_info bfin_spi_board_info[] __initdata = { 76 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 76 + #if IS_ENABLED(CONFIG_MTD_M25P80) 77 77 { 78 78 /* the modalias must be the same as spi device driver name */ 79 79 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 86 86 }, 87 87 #endif 88 88 89 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 89 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 90 90 { 91 91 .modalias = "ad183x", 92 92 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 95 95 }, 96 96 #endif 97 97 98 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 98 + #if IS_ENABLED(CONFIG_MMC_SPI) 99 99 { 100 100 .modalias = "mmc_spi", 101 101 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ ··· 144 144 }; 145 145 #endif /* spi master and devices */ 146 146 147 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 147 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 148 148 static struct platform_device rtc_device = { 149 149 .name = "rtc-bfin", 150 150 .id = -1, 151 151 }; 152 152 #endif 153 153 154 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 154 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 155 155 static struct platform_device hitachi_fb_device = { 156 156 .name = "hitachi-tx09", 157 157 }; 158 158 #endif 159 159 160 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 160 + #if IS_ENABLED(CONFIG_SMC91X) 161 161 #include <linux/smc91x.h> 162 162 163 163 static struct smc91x_platdata smc91x_info = { ··· 189 189 }; 190 190 #endif 191 191 192 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 192 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 193 193 static struct resource isp1362_hcd_resources[] = { 194 194 { 195 195 .start = 0x20308000, ··· 228 228 }; 229 229 #endif 230 230 231 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 231 + #if IS_ENABLED(CONFIG_USB_NET2272) 232 232 static struct resource net2272_bfin_resources[] = { 233 233 { 234 234 .start = 0x20300000, ··· 249 249 }; 250 250 #endif 251 251 252 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 252 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 253 253 static struct mtd_partition cm_partitions[] = { 254 254 { 255 255 .name = "bootloader(nor)", ··· 298 298 }; 299 299 #endif 300 300 301 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 301 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 302 302 #ifdef CONFIG_SERIAL_BFIN_UART0 303 303 static struct resource bfin_uart0_resources[] = { 304 304 { ··· 397 397 #endif 398 398 #endif 399 399 400 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 400 + #if IS_ENABLED(CONFIG_BFIN_SIR) 401 401 #ifdef CONFIG_BFIN_SIR0 402 402 static struct resource bfin_sir0_resources[] = { 403 403 { ··· 452 452 #endif 453 453 #endif 454 454 455 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 455 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 456 456 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 457 457 458 458 static struct resource bfin_twi0_resource[] = { ··· 479 479 }; 480 480 #endif 481 481 482 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 482 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 483 483 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 484 484 static struct resource bfin_sport0_uart_resources[] = { 485 485 { ··· 550 550 #endif 551 551 #endif 552 552 553 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 553 + #if IS_ENABLED(CONFIG_BFIN_MAC) 554 554 #include <linux/bfin_mac.h> 555 555 static const unsigned short bfin_mac_peripherals[] = P_MII0; 556 556 ··· 583 583 }; 584 584 #endif 585 585 586 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 586 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 587 587 #define PATA_INT IRQ_PF14 588 588 589 589 static struct pata_platform_info bfin_pata_platform_data = { ··· 651 651 652 652 &bfin_dpmc, 653 653 654 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 654 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 655 655 &hitachi_fb_device, 656 656 #endif 657 657 658 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 658 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 659 659 &rtc_device, 660 660 #endif 661 661 662 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 662 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 663 663 #ifdef CONFIG_SERIAL_BFIN_UART0 664 664 &bfin_uart0_device, 665 665 #endif ··· 668 668 #endif 669 669 #endif 670 670 671 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 671 + #if IS_ENABLED(CONFIG_BFIN_SIR) 672 672 #ifdef CONFIG_BFIN_SIR0 673 673 &bfin_sir0_device, 674 674 #endif ··· 677 677 #endif 678 678 #endif 679 679 680 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 680 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 681 681 &i2c_bfin_twi_device, 682 682 #endif 683 683 684 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 684 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 685 685 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 686 686 &bfin_sport0_uart_device, 687 687 #endif ··· 690 690 #endif 691 691 #endif 692 692 693 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 693 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 694 694 &isp1362_hcd_device, 695 695 #endif 696 696 697 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 697 + #if IS_ENABLED(CONFIG_SMC91X) 698 698 &smc91x_device, 699 699 #endif 700 700 701 - #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 701 + #if IS_ENABLED(CONFIG_BFIN_MAC) 702 702 &bfin_mii_bus, 703 703 &bfin_mac_device, 704 704 #endif 705 705 706 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 706 + #if IS_ENABLED(CONFIG_USB_NET2272) 707 707 &net2272_bfin_device, 708 708 #endif 709 709 710 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 710 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 711 711 &bfin_spi0_device, 712 712 #endif 713 713 714 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 714 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 715 715 &bfin_pata_device, 716 716 #endif 717 717 718 - #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) 718 + #if IS_ENABLED(CONFIG_MTD_GPIO_ADDR) 719 719 &cm_flash_device, 720 720 #endif 721 721 }; 722 722 723 723 static int __init net2272_init(void) 724 724 { 725 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 725 + #if IS_ENABLED(CONFIG_USB_NET2272) 726 726 int ret; 727 727 728 728 ret = gpio_request(GPIO_PG14, "net2272"); ··· 742 742 { 743 743 printk(KERN_INFO "%s(): registering device resources\n", __func__); 744 744 platform_add_devices(cm_bf537_devices, ARRAY_SIZE(cm_bf537_devices)); 745 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 745 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 746 746 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 747 747 #endif 748 748 749 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 749 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 750 750 irq_set_status_flags(PATA_INT, IRQ_NOAUTOEN); 751 751 #endif 752 752
+30 -32
arch/blackfin/mach-bf538/boards/ezkit.c
··· 33 33 */ 34 34 35 35 36 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 36 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 37 37 static struct platform_device rtc_device = { 38 38 .name = "rtc-bfin", 39 39 .id = -1, 40 40 }; 41 41 #endif /* CONFIG_RTC_DRV_BFIN */ 42 42 43 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 43 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 44 44 #ifdef CONFIG_SERIAL_BFIN_UART0 45 45 static struct resource bfin_uart0_resources[] = { 46 46 { ··· 199 199 #endif /* CONFIG_SERIAL_BFIN_UART2 */ 200 200 #endif /* CONFIG_SERIAL_BFIN */ 201 201 202 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 202 + #if IS_ENABLED(CONFIG_BFIN_SIR) 203 203 #ifdef CONFIG_BFIN_SIR0 204 204 static struct resource bfin_sir0_resources[] = { 205 205 { ··· 277 277 #endif /* CONFIG_BFIN_SIR2 */ 278 278 #endif /* CONFIG_BFIN_SIR */ 279 279 280 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 280 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 281 281 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 282 282 static struct resource bfin_sport0_uart_resources[] = { 283 283 { ··· 416 416 #endif /* CONFIG_SERIAL_BFIN_SPORT3_UART */ 417 417 #endif /* CONFIG_SERIAL_BFIN_SPORT */ 418 418 419 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 419 + #if IS_ENABLED(CONFIG_CAN_BFIN) 420 420 static unsigned short bfin_can_peripherals[] = { 421 421 P_CAN0_RX, P_CAN0_TX, 0 422 422 }; ··· 458 458 * USB-LAN EzExtender board 459 459 * Driver needs to know address, irq and flag pin. 460 460 */ 461 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 461 + #if IS_ENABLED(CONFIG_SMC91X) 462 462 #include <linux/smc91x.h> 463 463 464 464 static struct smc91x_platdata smc91x_info = { ··· 490 490 }; 491 491 #endif /* CONFIG_SMC91X */ 492 492 493 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 493 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 494 494 /* all SPI peripherals info goes here */ 495 - #if defined(CONFIG_MTD_M25P80) \ 496 - || defined(CONFIG_MTD_M25P80_MODULE) 495 + #if IS_ENABLED(CONFIG_MTD_M25P80) 497 496 /* SPI flash chip (m25p16) */ 498 497 static struct mtd_partition bfin_spi_flash_partitions[] = { 499 498 { ··· 520 521 #endif /* CONFIG_MTD_M25P80 */ 521 522 #endif /* CONFIG_SPI_BFIN5XX */ 522 523 523 - #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) 524 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879) 524 525 #include <linux/spi/ad7879.h> 525 526 static const struct ad7879_platform_data bfin_ad7879_ts_info = { 526 527 .model = 7879, /* Model = AD7879 */ ··· 537 538 }; 538 539 #endif /* CONFIG_TOUCHSCREEN_AD7879 */ 539 540 540 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 541 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 541 542 #include <asm/bfin-lq035q1.h> 542 543 543 544 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { ··· 567 568 #endif /* CONFIG_FB_BFIN_LQ035Q1 */ 568 569 569 570 static struct spi_board_info bf538_spi_board_info[] __initdata = { 570 - #if defined(CONFIG_MTD_M25P80) \ 571 - || defined(CONFIG_MTD_M25P80_MODULE) 571 + #if IS_ENABLED(CONFIG_MTD_M25P80) 572 572 { 573 573 /* the modalias must be the same as spi device driver name */ 574 574 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 579 581 .mode = SPI_MODE_3, 580 582 }, 581 583 #endif /* CONFIG_MTD_M25P80 */ 582 - #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) 584 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7879_SPI) 583 585 { 584 586 .modalias = "ad7879", 585 587 .platform_data = &bfin_ad7879_ts_info, ··· 590 592 .mode = SPI_CPHA | SPI_CPOL, 591 593 }, 592 594 #endif /* CONFIG_TOUCHSCREEN_AD7879_SPI */ 593 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 595 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 594 596 { 595 597 .modalias = "bfin-lq035q1-spi", 596 598 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 599 601 .mode = SPI_CPHA | SPI_CPOL, 600 602 }, 601 603 #endif /* CONFIG_FB_BFIN_LQ035Q1 */ 602 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 604 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 603 605 { 604 606 .modalias = "spidev", 605 607 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 715 717 }, 716 718 }; 717 719 718 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 720 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 719 721 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 720 722 721 723 static struct resource bfin_twi0_resource[] = { ··· 764 766 }; 765 767 #endif /* CONFIG_I2C_BLACKFIN_TWI */ 766 768 767 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 769 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 768 770 #include <linux/gpio_keys.h> 769 771 770 772 static struct gpio_keys_button bfin_gpio_keys_table[] = { ··· 812 814 }, 813 815 }; 814 816 815 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 817 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 816 818 static struct mtd_partition ezkit_partitions[] = { 817 819 { 818 820 .name = "bootloader(nor)", ··· 837 839 838 840 static struct resource ezkit_flash_resource = { 839 841 .start = 0x20000000, 840 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 842 + #if IS_ENABLED(CONFIG_SMC91X) 841 843 .end = 0x202fffff, 842 844 #else 843 845 .end = 0x203fffff, ··· 860 862 861 863 &bfin_dpmc, 862 864 863 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 865 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 864 866 &rtc_device, 865 867 #endif 866 868 867 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 869 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 868 870 #ifdef CONFIG_SERIAL_BFIN_UART0 869 871 &bfin_uart0_device, 870 872 #endif ··· 876 878 #endif 877 879 #endif 878 880 879 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 881 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 880 882 &bf538_spi_master0, 881 883 &bf538_spi_master1, 882 884 &bf538_spi_master2, 883 885 #endif 884 886 885 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 887 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 886 888 &i2c_bfin_twi0_device, 887 889 &i2c_bfin_twi1_device, 888 890 #endif 889 891 890 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 892 + #if IS_ENABLED(CONFIG_BFIN_SIR) 891 893 #ifdef CONFIG_BFIN_SIR0 892 894 &bfin_sir0_device, 893 895 #endif ··· 899 901 #endif 900 902 #endif 901 903 902 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 904 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 903 905 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 904 906 &bfin_sport0_uart_device, 905 907 #endif ··· 914 916 #endif 915 917 #endif 916 918 917 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 919 + #if IS_ENABLED(CONFIG_CAN_BFIN) 918 920 &bfin_can_device, 919 921 #endif 920 922 921 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 923 + #if IS_ENABLED(CONFIG_SMC91X) 922 924 &smc91x_device, 923 925 #endif 924 926 925 - #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) 927 + #if IS_ENABLED(CONFIG_FB_BFIN_LQ035Q1) 926 928 &bfin_lq035q1_device, 927 929 #endif 928 930 929 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 931 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 930 932 &bfin_device_gpiokeys, 931 933 #endif 932 934 933 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 935 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 934 936 &ezkit_flash_device, 935 937 #endif 936 938 }; ··· 940 942 printk(KERN_INFO "%s(): registering device resources\n", __func__); 941 943 platform_add_devices(cm_bf538_devices, ARRAY_SIZE(cm_bf538_devices)); 942 944 943 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 945 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 944 946 spi_register_board_info(bf538_spi_board_info, 945 947 ARRAY_SIZE(bf538_spi_board_info)); 946 948 #endif
+38 -40
arch/blackfin/mach-bf548/boards/cm_bf548.c
··· 37 37 * Driver needs to know address, irq and flag pin. 38 38 */ 39 39 40 - #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) 40 + #if IS_ENABLED(CONFIG_FB_BF54X_LQ043) 41 41 42 42 #include <mach/bf54x-lq043.h> 43 43 ··· 69 69 }; 70 70 #endif 71 71 72 - #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE) 72 + #if IS_ENABLED(CONFIG_KEYBOARD_BFIN) 73 73 static unsigned int bf548_keymap[] = { 74 74 KEYVAL(0, 0, KEY_ENTER), 75 75 KEYVAL(0, 1, KEY_HELP), ··· 119 119 }; 120 120 #endif 121 121 122 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 122 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 123 123 static struct platform_device rtc_device = { 124 124 .name = "rtc-bfin", 125 125 .id = -1, 126 126 }; 127 127 #endif 128 128 129 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 129 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 130 130 #ifdef CONFIG_SERIAL_BFIN_UART0 131 131 static struct resource bfin_uart0_resources[] = { 132 132 { ··· 353 353 #endif 354 354 #endif 355 355 356 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 356 + #if IS_ENABLED(CONFIG_BFIN_SIR) 357 357 #ifdef CONFIG_BFIN_SIR0 358 358 static struct resource bfin_sir0_resources[] = { 359 359 { ··· 456 456 #endif 457 457 #endif 458 458 459 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 459 + #if IS_ENABLED(CONFIG_SMSC911X) 460 460 #include <linux/smsc911x.h> 461 461 462 462 static struct resource smsc911x_resources[] = { ··· 491 491 }; 492 492 #endif 493 493 494 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 494 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 495 495 static struct resource musb_resources[] = { 496 496 [0] = { 497 497 .start = 0xFFC03C00, ··· 553 553 }; 554 554 #endif 555 555 556 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 556 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 557 557 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 558 558 static struct resource bfin_sport0_uart_resources[] = { 559 559 { ··· 692 692 #endif 693 693 #endif 694 694 695 - #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) 695 + #if IS_ENABLED(CONFIG_PATA_BF54X) 696 696 static struct resource bfin_atapi_resources[] = { 697 697 { 698 698 .start = 0xFFC03800, ··· 714 714 }; 715 715 #endif 716 716 717 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 717 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 718 718 static struct mtd_partition partition_info[] = { 719 719 { 720 720 .name = "linux kernel(nand)", ··· 760 760 }; 761 761 #endif 762 762 763 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 763 + #if IS_ENABLED(CONFIG_SDH_BFIN) 764 764 static struct bfin_sd_host bfin_sdh_data = { 765 765 .dma_chan = CH_SDH, 766 766 .irq_int0 = IRQ_SDH_MASK0, ··· 776 776 }; 777 777 #endif 778 778 779 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 779 + #if IS_ENABLED(CONFIG_CAN_BFIN) 780 780 static unsigned short bfin_can_peripherals[] = { 781 781 P_CAN0_RX, P_CAN0_TX, 0 782 782 }; ··· 814 814 }; 815 815 #endif 816 816 817 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 817 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 818 818 static struct mtd_partition para_partitions[] = { 819 819 { 820 820 .name = "bootloader(nor)", ··· 854 854 }; 855 855 #endif 856 856 857 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 857 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 858 858 /* all SPI peripherals info goes here */ 859 - #if defined(CONFIG_MTD_M25P80) \ 860 - || defined(CONFIG_MTD_M25P80_MODULE) 859 + #if IS_ENABLED(CONFIG_MTD_M25P80) 861 860 /* SPI flash chip (m25p16) */ 862 861 static struct mtd_partition bfin_spi_flash_partitions[] = { 863 862 { ··· 883 884 }; 884 885 #endif 885 886 886 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 887 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 887 888 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 888 889 .model = 7877, 889 890 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 900 901 #endif 901 902 902 903 static struct spi_board_info bf54x_spi_board_info[] __initdata = { 903 - #if defined(CONFIG_MTD_M25P80) \ 904 - || defined(CONFIG_MTD_M25P80_MODULE) 904 + #if IS_ENABLED(CONFIG_MTD_M25P80) 905 905 { 906 906 /* the modalias must be the same as spi device driver name */ 907 907 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 912 914 .mode = SPI_MODE_3, 913 915 }, 914 916 #endif 915 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 917 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 916 918 { 917 919 .modalias = "ad7877", 918 920 .platform_data = &bfin_ad7877_ts_info, ··· 922 924 .chip_select = 2, 923 925 }, 924 926 #endif 925 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 927 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 926 928 { 927 929 .modalias = "spidev", 928 930 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 1004 1006 }; 1005 1007 #endif /* spi master and devices */ 1006 1008 1007 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1009 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1008 1010 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 1009 1011 1010 1012 static struct resource bfin_twi0_resource[] = { ··· 1058 1060 #endif 1059 1061 #endif 1060 1062 1061 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1063 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1062 1064 #include <linux/gpio_keys.h> 1063 1065 1064 1066 static struct gpio_keys_button bfin_gpio_keys_table[] = { ··· 1110 1112 1111 1113 &bfin_dpmc, 1112 1114 1113 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 1115 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 1114 1116 &rtc_device, 1115 1117 #endif 1116 1118 1117 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 1119 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 1118 1120 #ifdef CONFIG_SERIAL_BFIN_UART0 1119 1121 &bfin_uart0_device, 1120 1122 #endif ··· 1129 1131 #endif 1130 1132 #endif 1131 1133 1132 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 1134 + #if IS_ENABLED(CONFIG_BFIN_SIR) 1133 1135 #ifdef CONFIG_BFIN_SIR0 1134 1136 &bfin_sir0_device, 1135 1137 #endif ··· 1144 1146 #endif 1145 1147 #endif 1146 1148 1147 - #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) 1149 + #if IS_ENABLED(CONFIG_FB_BF54X_LQ043) 1148 1150 &bf54x_lq043_device, 1149 1151 #endif 1150 1152 1151 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 1153 + #if IS_ENABLED(CONFIG_SMSC911X) 1152 1154 &smsc911x_device, 1153 1155 #endif 1154 1156 1155 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 1157 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 1156 1158 &musb_device, 1157 1159 #endif 1158 1160 1159 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 1161 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 1160 1162 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 1161 1163 &bfin_sport0_uart_device, 1162 1164 #endif ··· 1171 1173 #endif 1172 1174 #endif 1173 1175 1174 - #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) 1176 + #if IS_ENABLED(CONFIG_PATA_BF54X) 1175 1177 &bfin_atapi_device, 1176 1178 #endif 1177 1179 1178 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 1180 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 1179 1181 &bf5xx_nand_device, 1180 1182 #endif 1181 1183 1182 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 1184 + #if IS_ENABLED(CONFIG_SDH_BFIN) 1183 1185 &bf54x_sdh_device, 1184 1186 #endif 1185 1187 1186 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 1188 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 1187 1189 &bf54x_spi_master0, 1188 1190 &bf54x_spi_master1, 1189 1191 #endif 1190 1192 1191 - #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE) 1193 + #if IS_ENABLED(CONFIG_KEYBOARD_BFIN) 1192 1194 &bf54x_kpad_device, 1193 1195 #endif 1194 1196 1195 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1197 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1196 1198 &i2c_bfin_twi0_device, 1197 1199 #if !defined(CONFIG_BF542) 1198 1200 &i2c_bfin_twi1_device, 1199 1201 #endif 1200 1202 #endif 1201 1203 1202 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1204 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1203 1205 &bfin_device_gpiokeys, 1204 1206 #endif 1205 1207 1206 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 1208 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 1207 1209 &para_flash_device, 1208 1210 #endif 1209 1211 1210 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 1212 + #if IS_ENABLED(CONFIG_CAN_BFIN) 1211 1213 &bfin_can_device, 1212 1214 #endif 1213 1215 ··· 1218 1220 printk(KERN_INFO "%s(): registering device resources\n", __func__); 1219 1221 platform_add_devices(cm_bf548_devices, ARRAY_SIZE(cm_bf548_devices)); 1220 1222 1221 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 1223 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 1222 1224 spi_register_board_info(bf54x_spi_board_info, 1223 1225 ARRAY_SIZE(bf54x_spi_board_info)); 1224 1226 #endif
+65 -71
arch/blackfin/mach-bf548/boards/ezkit.c
··· 41 41 * Driver needs to know address, irq and flag pin. 42 42 */ 43 43 44 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 44 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 45 45 #include <linux/usb/isp1760.h> 46 46 static struct resource bfin_isp1760_resources[] = { 47 47 [0] = { ··· 76 76 }; 77 77 #endif 78 78 79 - #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) 79 + #if IS_ENABLED(CONFIG_FB_BF54X_LQ043) 80 80 81 81 #include <mach/bf54x-lq043.h> 82 82 ··· 108 108 }; 109 109 #endif 110 110 111 - #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE) 111 + #if IS_ENABLED(CONFIG_KEYBOARD_BFIN) 112 112 static const unsigned int bf548_keymap[] = { 113 113 KEYVAL(0, 0, KEY_ENTER), 114 114 KEYVAL(0, 1, KEY_HELP), ··· 158 158 }; 159 159 #endif 160 160 161 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 161 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 162 162 #include <asm/bfin_rotary.h> 163 163 164 164 static struct bfin_rotary_platform_data bfin_rotary_data = { ··· 190 190 }; 191 191 #endif 192 192 193 - #if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE) 193 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X) 194 194 #include <linux/input/adxl34x.h> 195 195 static const struct adxl34x_platform_data adxl34x_info = { 196 196 .x_axis_offset = 0, ··· 229 229 }; 230 230 #endif 231 231 232 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 232 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 233 233 static struct platform_device rtc_device = { 234 234 .name = "rtc-bfin", 235 235 .id = -1, 236 236 }; 237 237 #endif 238 238 239 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 239 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 240 240 #ifdef CONFIG_SERIAL_BFIN_UART0 241 241 static struct resource bfin_uart0_resources[] = { 242 242 { ··· 491 491 #endif 492 492 #endif 493 493 494 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 494 + #if IS_ENABLED(CONFIG_BFIN_SIR) 495 495 #ifdef CONFIG_BFIN_SIR0 496 496 static struct resource bfin_sir0_resources[] = { 497 497 { ··· 594 594 #endif 595 595 #endif 596 596 597 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 597 + #if IS_ENABLED(CONFIG_SMSC911X) 598 598 #include <linux/smsc911x.h> 599 599 600 600 static struct resource smsc911x_resources[] = { ··· 629 629 }; 630 630 #endif 631 631 632 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 632 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 633 633 static struct resource musb_resources[] = { 634 634 [0] = { 635 635 .start = 0xFFC03C00, ··· 691 691 }; 692 692 #endif 693 693 694 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 694 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 695 695 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 696 696 static struct resource bfin_sport0_uart_resources[] = { 697 697 { ··· 830 830 #endif 831 831 #endif 832 832 833 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 833 + #if IS_ENABLED(CONFIG_CAN_BFIN) 834 834 835 835 static unsigned short bfin_can0_peripherals[] = { 836 836 P_CAN0_RX, P_CAN0_TX, 0 ··· 908 908 909 909 #endif 910 910 911 - #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) 911 + #if IS_ENABLED(CONFIG_PATA_BF54X) 912 912 static struct resource bfin_atapi_resources[] = { 913 913 { 914 914 .start = 0xFFC03800, ··· 930 930 }; 931 931 #endif 932 932 933 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 933 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 934 934 static struct mtd_partition partition_info[] = { 935 935 { 936 936 .name = "bootloader(nand)", ··· 980 980 }; 981 981 #endif 982 982 983 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 983 + #if IS_ENABLED(CONFIG_SDH_BFIN) 984 984 985 985 static struct bfin_sd_host bfin_sdh_data = { 986 986 .dma_chan = CH_SDH, ··· 997 997 }; 998 998 #endif 999 999 1000 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 1000 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 1001 1001 static struct mtd_partition ezkit_partitions[] = { 1002 1002 { 1003 1003 .name = "bootloader(nor)", ··· 1045 1045 }; 1046 1046 #endif 1047 1047 1048 - #if defined(CONFIG_MTD_M25P80) \ 1049 - || defined(CONFIG_MTD_M25P80_MODULE) 1048 + #if IS_ENABLED(CONFIG_MTD_M25P80) 1050 1049 /* SPI flash chip (m25p16) */ 1051 1050 static struct mtd_partition bfin_spi_flash_partitions[] = { 1052 1051 { ··· 1072 1073 }; 1073 1074 #endif 1074 1075 1075 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 1076 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 1076 1077 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 1077 1078 .model = 7877, 1078 1079 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 1494 1495 #endif 1495 1496 1496 1497 static struct spi_board_info bfin_spi_board_info[] __initdata = { 1497 - #if defined(CONFIG_MTD_M25P80) \ 1498 - || defined(CONFIG_MTD_M25P80_MODULE) 1498 + #if IS_ENABLED(CONFIG_MTD_M25P80) 1499 1499 { 1500 1500 /* the modalias must be the same as spi device driver name */ 1501 1501 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 1506 1508 .mode = SPI_MODE_3, 1507 1509 }, 1508 1510 #endif 1509 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 1510 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 1511 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 1511 1512 { 1512 1513 .modalias = "ad183x", 1513 1514 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 1514 1517 .chip_select = MAX_CTRL_CS + GPIO_PG6, /* SPI_SSEL2 */ 1515 1518 }, 1516 1519 #endif 1517 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 1520 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 1518 1521 { 1519 1522 .modalias = "ad7877", 1520 1523 .platform_data = &bfin_ad7877_ts_info, ··· 1524 1527 .chip_select = MAX_CTRL_CS + GPIO_PE5, /* SPI_SSEL2 */ 1525 1528 }, 1526 1529 #endif 1527 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 1530 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 1528 1531 { 1529 1532 .modalias = "spidev", 1530 1533 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 1532 1535 .chip_select = MAX_CTRL_CS + GPIO_PE4, /* SPI_SSEL1 */ 1533 1536 }, 1534 1537 #endif 1535 - #if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE) 1538 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_SPI) 1536 1539 { 1537 1540 .modalias = "adxl34x", 1538 1541 .platform_data = &adxl34x_info, ··· 1544 1547 }, 1545 1548 #endif 1546 1549 }; 1547 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 1550 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 1548 1551 /* SPI (0) */ 1549 1552 static struct resource bfin_spi0_resource[] = { 1550 1553 [0] = { ··· 1617 1620 }; 1618 1621 #endif /* spi master and devices */ 1619 1622 1620 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 1621 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 1623 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 1622 1624 #include <linux/videodev2.h> 1623 1625 #include <media/blackfin/bfin_capture.h> 1624 1626 #include <media/blackfin/ppi.h> ··· 1637 1641 .pin_req = ppi_req, 1638 1642 }; 1639 1643 1640 - #if defined(CONFIG_VIDEO_VS6624) \ 1641 - || defined(CONFIG_VIDEO_VS6624_MODULE) 1644 + #if IS_ENABLED(CONFIG_VIDEO_VS6624) 1642 1645 static struct v4l2_input vs6624_inputs[] = { 1643 1646 { 1644 1647 .index = 0, ··· 1682 1687 }; 1683 1688 #endif 1684 1689 1685 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1690 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1686 1691 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 1687 1692 1688 1693 static struct resource bfin_twi0_resource[] = { ··· 1737 1742 #endif 1738 1743 1739 1744 static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { 1740 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 1745 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 1741 1746 { 1742 1747 I2C_BOARD_INFO("ssm2602", 0x1b), 1743 1748 }, ··· 1746 1751 1747 1752 #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ 1748 1753 static struct i2c_board_info __initdata bfin_i2c_board_info1[] = { 1749 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 1754 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 1750 1755 { 1751 1756 I2C_BOARD_INFO("pcf8574_lcd", 0x22), 1752 1757 }, 1753 1758 #endif 1754 - #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE) 1759 + #if IS_ENABLED(CONFIG_INPUT_PCF8574) 1755 1760 { 1756 1761 I2C_BOARD_INFO("pcf8574_keypad", 0x27), 1757 1762 .irq = 212, 1758 1763 }, 1759 1764 #endif 1760 - #if defined(CONFIG_INPUT_ADXL34X_I2C) || defined(CONFIG_INPUT_ADXL34X_I2C_MODULE) 1765 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C) 1761 1766 { 1762 1767 I2C_BOARD_INFO("adxl34x", 0x53), 1763 1768 .irq = IRQ_PC5, 1764 1769 .platform_data = (void *)&adxl34x_info, 1765 1770 }, 1766 1771 #endif 1767 - #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 1772 + #if IS_ENABLED(CONFIG_BFIN_TWI_LCD) 1768 1773 { 1769 1774 I2C_BOARD_INFO("ad5252", 0x2f), 1770 1775 }, ··· 1772 1777 }; 1773 1778 #endif 1774 1779 1775 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1780 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1776 1781 #include <linux/gpio_keys.h> 1777 1782 1778 1783 static struct gpio_keys_button bfin_gpio_keys_table[] = { ··· 1823 1828 }, 1824 1829 }; 1825 1830 1826 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \ 1827 - defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 1831 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) || \ 1832 + IS_ENABLED(CONFIG_SND_BF5XX_AC97) 1828 1833 1829 1834 #define SPORT_REQ(x) \ 1830 1835 [x] = {P_SPORT##x##_TFS, P_SPORT##x##_DTPRI, P_SPORT##x##_TSCLK, \ ··· 1884 1889 }; 1885 1890 #endif 1886 1891 1887 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 1892 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 1888 1893 static struct platform_device bfin_i2s_pcm = { 1889 1894 .name = "bfin-i2s-pcm-audio", 1890 1895 .id = -1, 1891 1896 }; 1892 1897 #endif 1893 1898 1894 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 1899 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 1895 1900 static struct platform_device bfin_ac97_pcm = { 1896 1901 .name = "bfin-ac97-pcm-audio", 1897 1902 .id = -1, 1898 1903 }; 1899 1904 #endif 1900 1905 1901 - #if defined(CONFIG_SND_BF5XX_SOC_AD73311) || defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE) 1906 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD73311) 1902 1907 static struct platform_device bfin_ad73311_codec_device = { 1903 1908 .name = "ad73311", 1904 1909 .id = -1, 1905 1910 }; 1906 1911 #endif 1907 1912 1908 - #if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE) 1913 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1980) 1909 1914 static struct platform_device bfin_ad1980_codec_device = { 1910 1915 .name = "ad1980", 1911 1916 .id = -1, 1912 1917 }; 1913 1918 #endif 1914 1919 1915 - #if defined(CONFIG_SND_BF5XX_SOC_I2S) || defined(CONFIG_SND_BF5XX_SOC_I2S_MODULE) 1920 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_I2S) 1916 1921 static struct platform_device bfin_i2s = { 1917 1922 .name = "bfin-i2s", 1918 1923 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 1924 1929 }; 1925 1930 #endif 1926 1931 1927 - #if defined(CONFIG_SND_BF5XX_SOC_AC97) || defined(CONFIG_SND_BF5XX_SOC_AC97_MODULE) 1932 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AC97) 1928 1933 static struct platform_device bfin_ac97 = { 1929 1934 .name = "bfin-ac97", 1930 1935 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 1957 1962 &bfin_gpj_device, 1958 1963 #endif 1959 1964 1960 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 1965 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 1961 1966 &rtc_device, 1962 1967 #endif 1963 1968 1964 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 1969 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 1965 1970 #ifdef CONFIG_SERIAL_BFIN_UART0 1966 1971 &bfin_uart0_device, 1967 1972 #endif ··· 1976 1981 #endif 1977 1982 #endif 1978 1983 1979 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 1984 + #if IS_ENABLED(CONFIG_BFIN_SIR) 1980 1985 #ifdef CONFIG_BFIN_SIR0 1981 1986 &bfin_sir0_device, 1982 1987 #endif ··· 1991 1996 #endif 1992 1997 #endif 1993 1998 1994 - #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) 1999 + #if IS_ENABLED(CONFIG_FB_BF54X_LQ043) 1995 2000 &bf54x_lq043_device, 1996 2001 #endif 1997 2002 1998 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 2003 + #if IS_ENABLED(CONFIG_SMSC911X) 1999 2004 &smsc911x_device, 2000 2005 #endif 2001 2006 2002 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 2007 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 2003 2008 &musb_device, 2004 2009 #endif 2005 2010 2006 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 2011 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 2007 2012 &bfin_isp1760_device, 2008 2013 #endif 2009 2014 2010 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 2015 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 2011 2016 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 2012 2017 &bfin_sport0_uart_device, 2013 2018 #endif ··· 2022 2027 #endif 2023 2028 #endif 2024 2029 2025 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 2030 + #if IS_ENABLED(CONFIG_CAN_BFIN) 2026 2031 &bfin_can0_device, 2027 2032 &bfin_can1_device, 2028 2033 #endif 2029 2034 2030 - #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) 2035 + #if IS_ENABLED(CONFIG_PATA_BF54X) 2031 2036 &bfin_atapi_device, 2032 2037 #endif 2033 2038 2034 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 2039 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 2035 2040 &bf5xx_nand_device, 2036 2041 #endif 2037 2042 2038 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 2043 + #if IS_ENABLED(CONFIG_SDH_BFIN) 2039 2044 &bf54x_sdh_device, 2040 2045 #endif 2041 2046 2042 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 2047 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 2043 2048 &bf54x_spi_master0, 2044 2049 &bf54x_spi_master1, 2045 2050 #endif 2046 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 2047 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 2051 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 2048 2052 &bfin_capture_device, 2049 2053 #endif 2050 2054 2051 - #if defined(CONFIG_KEYBOARD_BFIN) || defined(CONFIG_KEYBOARD_BFIN_MODULE) 2055 + #if IS_ENABLED(CONFIG_KEYBOARD_BFIN) 2052 2056 &bf54x_kpad_device, 2053 2057 #endif 2054 2058 2055 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 2059 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 2056 2060 &bfin_rotary_device, 2057 2061 #endif 2058 2062 2059 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 2063 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 2060 2064 &i2c_bfin_twi0_device, 2061 2065 #if !defined(CONFIG_BF542) 2062 2066 &i2c_bfin_twi1_device, 2063 2067 #endif 2064 2068 #endif 2065 2069 2066 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 2070 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 2067 2071 &bfin_device_gpiokeys, 2068 2072 #endif 2069 2073 2070 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 2074 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 2071 2075 &ezkit_flash_device, 2072 2076 #endif 2073 2077 2074 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 2078 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 2075 2079 &bfin_i2s_pcm, 2076 2080 #endif 2077 2081 2078 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 2082 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 2079 2083 &bfin_ac97_pcm, 2080 2084 #endif 2081 2085 2082 - #if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE) 2086 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1980) 2083 2087 &bfin_ad1980_codec_device, 2084 2088 #endif 2085 2089 2086 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 2090 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 2087 2091 &bfin_i2s, 2088 2092 #endif 2089 2093 2090 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 2094 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 2091 2095 &bfin_ac97, 2092 2096 #endif 2093 2097 };
-30
arch/blackfin/mach-bf548/include/mach/defBF544.h
··· 601 601 #define GU_TRANS 0xff00 /* Transparent Color - G/U Component */ 602 602 #define BV_TRANS 0xff0000 /* Transparent Color - B/V Component */ 603 603 604 - /* Bit masks for HOST_CONTROL */ 605 - 606 - #define HOST_EN 0x1 /* Host Enable */ 607 - #define HOST_END 0x2 /* Host Endianess */ 608 - #define DATA_SIZE 0x4 /* Data Size */ 609 - #define HOST_RST 0x8 /* Host Reset */ 610 - #define HRDY_OVR 0x20 /* Host Ready Override */ 611 - #define INT_MODE 0x40 /* Interrupt Mode */ 612 - #define BT_EN 0x80 /* Bus Timeout Enable */ 613 - #define EHW 0x100 /* Enable Host Write */ 614 - #define EHR 0x200 /* Enable Host Read */ 615 - #define BDR 0x400 /* Burst DMA Requests */ 616 - 617 - /* Bit masks for HOST_STATUS */ 618 - 619 - #define DMA_READY 0x1 /* DMA Ready */ 620 - #define FIFOFULL 0x2 /* FIFO Full */ 621 - #define FIFOEMPTY 0x4 /* FIFO Empty */ 622 - #define DMA_COMPLETE 0x8 /* DMA Complete */ 623 - #define HSHK 0x10 /* Host Handshake */ 624 - #define HSTIMEOUT 0x20 /* Host Timeout */ 625 - #define HIRQ 0x40 /* Host Interrupt Request */ 626 - #define ALLOW_CNFG 0x80 /* Allow New Configuration */ 627 - #define DMA_DIR 0x100 /* DMA Direction */ 628 - #define BTE 0x200 /* Bus Timeout Enabled */ 629 - 630 - /* Bit masks for HOST_TIMEOUT */ 631 - 632 - #define COUNT_TIMEOUT 0x7ff /* Host Timeout count */ 633 - 634 604 /* Bit masks for TIMER_ENABLE1 */ 635 605 636 606 #define TIMEN8 0x1 /* Timer 8 Enable */
-30
arch/blackfin/mach-bf548/include/mach/defBF547.h
··· 581 581 #define GU_TRANS 0xff00 /* Transparent Color - G/U Component */ 582 582 #define BV_TRANS 0xff0000 /* Transparent Color - B/V Component */ 583 583 584 - /* Bit masks for HOST_CONTROL */ 585 - 586 - #define HOST_EN 0x1 /* Host Enable */ 587 - #define HOST_END 0x2 /* Host Endianess */ 588 - #define DATA_SIZE 0x4 /* Data Size */ 589 - #define HOST_RST 0x8 /* Host Reset */ 590 - #define HRDY_OVR 0x20 /* Host Ready Override */ 591 - #define INT_MODE 0x40 /* Interrupt Mode */ 592 - #define BT_EN 0x80 /* Bus Timeout Enable */ 593 - #define EHW 0x100 /* Enable Host Write */ 594 - #define EHR 0x200 /* Enable Host Read */ 595 - #define BDR 0x400 /* Burst DMA Requests */ 596 - 597 - /* Bit masks for HOST_STATUS */ 598 - 599 - #define DMA_READY 0x1 /* DMA Ready */ 600 - #define FIFOFULL 0x2 /* FIFO Full */ 601 - #define FIFOEMPTY 0x4 /* FIFO Empty */ 602 - #define DMA_COMPLETE 0x8 /* DMA Complete */ 603 - #define HSHK 0x10 /* Host Handshake */ 604 - #define HSTIMEOUT 0x20 /* Host Timeout */ 605 - #define HIRQ 0x40 /* Host Interrupt Request */ 606 - #define ALLOW_CNFG 0x80 /* Allow New Configuration */ 607 - #define DMA_DIR 0x100 /* DMA Direction */ 608 - #define BTE 0x200 /* Bus Timeout Enabled */ 609 - 610 - /* Bit masks for HOST_TIMEOUT */ 611 - 612 - #define COUNT_TIMEOUT 0x7ff /* Host Timeout count */ 613 - 614 584 /* Bit masks for KPAD_CTL */ 615 585 616 586 #define KPAD_EN 0x1 /* Keypad Enable */
+14 -14
arch/blackfin/mach-bf561/boards/acvilon.c
··· 60 60 */ 61 61 const char bfin_board_name[] = "Acvilon board"; 62 62 63 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 63 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 64 64 #include <linux/usb/isp1760.h> 65 65 static struct resource bfin_isp1760_resources[] = { 66 66 [0] = { ··· 137 137 }, 138 138 }; 139 139 140 - #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE) 140 + #if IS_ENABLED(CONFIG_MTD_PLATRAM) 141 141 static struct platdata_mtd_ram mtd_ram_data = { 142 142 .mapname = "rootfs(RAM)", 143 143 .bankwidth = 4, ··· 160 160 }; 161 161 #endif 162 162 163 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 163 + #if IS_ENABLED(CONFIG_SMSC911X) 164 164 #include <linux/smsc911x.h> 165 165 static struct resource smsc911x_resources[] = { 166 166 { ··· 194 194 }; 195 195 #endif 196 196 197 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 197 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 198 198 #ifdef CONFIG_SERIAL_BFIN_UART0 199 199 static struct resource bfin_uart0_resources[] = { 200 200 { ··· 246 246 #endif 247 247 #endif 248 248 249 - #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) 249 + #if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM) 250 250 251 251 static struct mtd_partition bfin_plat_nand_partitions[] = { 252 252 { ··· 323 323 } 324 324 #endif 325 325 326 - #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) 326 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 327 327 static struct mtd_partition bfin_spi_dataflash_partitions[] = { 328 328 { 329 329 .name = "bootloader", ··· 369 369 }; 370 370 #endif 371 371 372 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 372 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 373 373 /* SPI (0) */ 374 374 static struct resource bfin_spi0_resource[] = { 375 375 [0] = { ··· 408 408 #endif 409 409 410 410 static struct spi_board_info bfin_spi_board_info[] __initdata = { 411 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 411 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 412 412 { 413 413 .modalias = "spidev", 414 414 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 416 416 .chip_select = 3, 417 417 }, 418 418 #endif 419 - #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) 419 + #if IS_ENABLED(CONFIG_MTD_DATAFLASH) 420 420 { /* DataFlash chip */ 421 421 .modalias = "mtd_dataflash", 422 422 .max_speed_hz = 33250000, /* max spi clock (SCK) speed in HZ */ ··· 472 472 static struct platform_device *acvilon_devices[] __initdata = { 473 473 &bfin_dpmc, 474 474 475 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 475 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 476 476 &bfin_spi0_device, 477 477 #endif 478 478 479 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 479 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 480 480 #ifdef CONFIG_SERIAL_BFIN_UART0 481 481 &bfin_uart0_device, 482 482 #endif ··· 484 484 485 485 &bfin_gpios_device, 486 486 487 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 487 + #if IS_ENABLED(CONFIG_SMSC911X) 488 488 &smsc911x_device, 489 489 #endif 490 490 491 491 &bfin_i2c_pca_device, 492 492 493 - #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) 493 + #if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM) 494 494 &bfin_async_nand_device, 495 495 #endif 496 496 497 - #if defined(CONFIG_MTD_PLATRAM) || defined(CONFIG_MTD_PLATRAM_MODULE) 497 + #if IS_ENABLED(CONFIG_MTD_PLATRAM) 498 498 &mtd_ram_device, 499 499 #endif 500 500
+28 -28
arch/blackfin/mach-bf561/boards/cm_bf561.c
··· 13 13 #include <linux/mtd/partitions.h> 14 14 #include <linux/spi/spi.h> 15 15 #include <linux/spi/flash.h> 16 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 16 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 17 17 #include <linux/usb/isp1362.h> 18 18 #endif 19 19 #include <linux/ata_platform.h> ··· 29 29 */ 30 30 const char bfin_board_name[] = "Bluetechnix CM BF561"; 31 31 32 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 32 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 33 33 /* all SPI peripherals info goes here */ 34 34 35 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 35 + #if IS_ENABLED(CONFIG_MTD_M25P80) 36 36 static struct mtd_partition bfin_spi_flash_partitions[] = { 37 37 { 38 38 .name = "bootloader(spi)", ··· 64 64 #endif 65 65 66 66 static struct spi_board_info bfin_spi_board_info[] __initdata = { 67 - #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) 67 + #if IS_ENABLED(CONFIG_MTD_M25P80) 68 68 { 69 69 /* the modalias must be the same as spi device driver name */ 70 70 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 77 77 }, 78 78 #endif 79 79 80 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 80 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 81 81 { 82 82 .modalias = "ad183x", 83 83 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 85 85 .chip_select = 4, 86 86 }, 87 87 #endif 88 - #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) 88 + #if IS_ENABLED(CONFIG_MMC_SPI) 89 89 { 90 90 .modalias = "mmc_spi", 91 91 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ ··· 134 134 #endif /* spi master and devices */ 135 135 136 136 137 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 137 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 138 138 static struct platform_device hitachi_fb_device = { 139 139 .name = "hitachi-tx09", 140 140 }; 141 141 #endif 142 142 143 143 144 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 144 + #if IS_ENABLED(CONFIG_SMC91X) 145 145 #include <linux/smc91x.h> 146 146 147 147 static struct smc91x_platdata smc91x_info = { ··· 173 173 }; 174 174 #endif 175 175 176 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 176 + #if IS_ENABLED(CONFIG_SMSC911X) 177 177 #include <linux/smsc911x.h> 178 178 179 179 static struct resource smsc911x_resources[] = { ··· 208 208 }; 209 209 #endif 210 210 211 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 211 + #if IS_ENABLED(CONFIG_USB_NET2272) 212 212 static struct resource net2272_bfin_resources[] = { 213 213 { 214 214 .start = 0x24000000, ··· 229 229 }; 230 230 #endif 231 231 232 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 232 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 233 233 static struct resource isp1362_hcd_resources[] = { 234 234 { 235 235 .start = 0x24008000, ··· 268 268 }; 269 269 #endif 270 270 271 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 271 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 272 272 #ifdef CONFIG_SERIAL_BFIN_UART0 273 273 static struct resource bfin_uart0_resources[] = { 274 274 { ··· 319 319 #endif 320 320 #endif 321 321 322 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 322 + #if IS_ENABLED(CONFIG_BFIN_SIR) 323 323 #ifdef CONFIG_BFIN_SIR0 324 324 static struct resource bfin_sir0_resources[] = { 325 325 { ··· 348 348 #endif 349 349 #endif 350 350 351 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 351 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 352 352 #define PATA_INT IRQ_PF46 353 353 354 354 static struct pata_platform_info bfin_pata_platform_data = { ··· 385 385 }; 386 386 #endif 387 387 388 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 388 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 389 389 static struct mtd_partition para_partitions[] = { 390 390 { 391 391 .name = "bootloader(nor)", ··· 456 456 457 457 &bfin_dpmc, 458 458 459 - #if defined(CONFIG_FB_HITACHI_TX09) || defined(CONFIG_FB_HITACHI_TX09_MODULE) 459 + #if IS_ENABLED(CONFIG_FB_HITACHI_TX09) 460 460 &hitachi_fb_device, 461 461 #endif 462 462 463 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 463 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 464 464 #ifdef CONFIG_SERIAL_BFIN_UART0 465 465 &bfin_uart0_device, 466 466 #endif 467 467 #endif 468 468 469 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 469 + #if IS_ENABLED(CONFIG_BFIN_SIR) 470 470 #ifdef CONFIG_BFIN_SIR0 471 471 &bfin_sir0_device, 472 472 #endif 473 473 #endif 474 474 475 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 475 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 476 476 &isp1362_hcd_device, 477 477 #endif 478 478 479 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 479 + #if IS_ENABLED(CONFIG_SMC91X) 480 480 &smc91x_device, 481 481 #endif 482 482 483 - #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) 483 + #if IS_ENABLED(CONFIG_SMSC911X) 484 484 &smsc911x_device, 485 485 #endif 486 486 487 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 487 + #if IS_ENABLED(CONFIG_USB_NET2272) 488 488 &net2272_bfin_device, 489 489 #endif 490 490 491 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 491 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 492 492 &bfin_spi0_device, 493 493 #endif 494 494 495 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 495 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 496 496 &bfin_pata_device, 497 497 #endif 498 498 499 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 499 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 500 500 &para_flash_device, 501 501 #endif 502 502 }; 503 503 504 504 static int __init net2272_init(void) 505 505 { 506 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 506 + #if IS_ENABLED(CONFIG_USB_NET2272) 507 507 int ret; 508 508 509 509 ret = gpio_request(GPIO_PF46, "net2272"); ··· 523 523 { 524 524 printk(KERN_INFO "%s(): registering device resources\n", __func__); 525 525 platform_add_devices(cm_bf561_devices, ARRAY_SIZE(cm_bf561_devices)); 526 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 526 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 527 527 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); 528 528 #endif 529 529 530 - #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 530 + #if IS_ENABLED(CONFIG_PATA_PLATFORM) 531 531 irq_set_status_flags(PATA_INT, IRQ_NOAUTOEN); 532 532 #endif 533 533
+34 -40
arch/blackfin/mach-bf561/boards/ezkit.c
··· 25 25 */ 26 26 const char bfin_board_name[] = "ADI BF561-EZKIT"; 27 27 28 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 28 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 29 29 #include <linux/usb/isp1760.h> 30 30 static struct resource bfin_isp1760_resources[] = { 31 31 [0] = { ··· 60 60 }; 61 61 #endif 62 62 63 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 63 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 64 64 #include <linux/usb/isp1362.h> 65 65 66 66 static struct resource isp1362_hcd_resources[] = { ··· 101 101 }; 102 102 #endif 103 103 104 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 104 + #if IS_ENABLED(CONFIG_USB_NET2272) 105 105 static struct resource net2272_bfin_resources[] = { 106 106 { 107 107 .start = 0x2C000000, ··· 129 129 * USB-LAN EzExtender board 130 130 * Driver needs to know address, irq and flag pin. 131 131 */ 132 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 132 + #if IS_ENABLED(CONFIG_SMC91X) 133 133 #include <linux/smc91x.h> 134 134 135 135 static struct smc91x_platdata smc91x_info = { ··· 163 163 }; 164 164 #endif 165 165 166 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 166 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 167 167 #ifdef CONFIG_SERIAL_BFIN_UART0 168 168 static struct resource bfin_uart0_resources[] = { 169 169 { ··· 214 214 #endif 215 215 #endif 216 216 217 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 217 + #if IS_ENABLED(CONFIG_BFIN_SIR) 218 218 #ifdef CONFIG_BFIN_SIR0 219 219 static struct resource bfin_sir0_resources[] = { 220 220 { ··· 243 243 #endif 244 244 #endif 245 245 246 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 246 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 247 247 static struct mtd_partition ezkit_partitions[] = { 248 248 { 249 249 .name = "bootloader(nor)", ··· 291 291 }; 292 292 #endif 293 293 294 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 294 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 295 295 /* SPI (0) */ 296 296 static struct resource bfin_spi0_resource[] = { 297 297 [0] = { ··· 330 330 #endif 331 331 332 332 static struct spi_board_info bfin_spi_board_info[] __initdata = { 333 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) \ 334 - || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 333 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 335 334 { 336 335 .modalias = "ad183x", 337 336 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 340 341 .mode = SPI_MODE_3, 341 342 }, 342 343 #endif 343 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 344 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 344 345 { 345 346 .modalias = "spidev", 346 347 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 350 351 #endif 351 352 }; 352 353 353 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 354 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 354 355 #include <linux/input.h> 355 356 #include <linux/gpio_keys.h> 356 357 ··· 374 375 }; 375 376 #endif 376 377 377 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 378 + #if IS_ENABLED(CONFIG_I2C_GPIO) 378 379 #include <linux/i2c-gpio.h> 379 380 380 381 static struct i2c_gpio_platform_data i2c_gpio_data = { ··· 421 422 }, 422 423 }; 423 424 424 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 425 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 425 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 426 426 #include <linux/videodev2.h> 427 427 #include <media/blackfin/bfin_capture.h> 428 428 #include <media/blackfin/ppi.h> ··· 441 443 .pin_req = ppi_req, 442 444 }; 443 445 444 - #if defined(CONFIG_VIDEO_ADV7183) \ 445 - || defined(CONFIG_VIDEO_ADV7183_MODULE) 446 + #if IS_ENABLED(CONFIG_VIDEO_ADV7183) 446 447 #include <media/adv7183.h> 447 448 static struct v4l2_input adv7183_inputs[] = { 448 449 { ··· 512 515 }; 513 516 #endif 514 517 515 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 518 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 516 519 static struct platform_device bfin_i2s = { 517 520 .name = "bfin-i2s", 518 521 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 520 523 }; 521 524 #endif 522 525 523 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 526 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 524 527 static struct platform_device bfin_ac97 = { 525 528 .name = "bfin-ac97", 526 529 .id = CONFIG_SND_BF5XX_SPORT_NUM, ··· 528 531 }; 529 532 #endif 530 533 531 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 532 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 534 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 533 535 static const char * const ad1836_link[] = { 534 536 "bfin-i2s.0", 535 537 "spi0.4", ··· 546 550 547 551 &bfin_dpmc, 548 552 549 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 553 + #if IS_ENABLED(CONFIG_SMC91X) 550 554 &smc91x_device, 551 555 #endif 552 556 553 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 557 + #if IS_ENABLED(CONFIG_USB_NET2272) 554 558 &net2272_bfin_device, 555 559 #endif 556 560 557 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 561 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 558 562 &bfin_isp1760_device, 559 563 #endif 560 564 561 - #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) 565 + #if IS_ENABLED(CONFIG_SPI_BFIN5XX) 562 566 &bfin_spi0_device, 563 567 #endif 564 568 565 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 569 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 566 570 #ifdef CONFIG_SERIAL_BFIN_UART0 567 571 &bfin_uart0_device, 568 572 #endif 569 573 #endif 570 574 571 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 575 + #if IS_ENABLED(CONFIG_BFIN_SIR) 572 576 #ifdef CONFIG_BFIN_SIR0 573 577 &bfin_sir0_device, 574 578 #endif 575 579 #endif 576 580 577 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 581 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 578 582 &bfin_device_gpiokeys, 579 583 #endif 580 584 581 - #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 585 + #if IS_ENABLED(CONFIG_I2C_GPIO) 582 586 &i2c_gpio_device, 583 587 #endif 584 588 585 - #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) 589 + #if IS_ENABLED(CONFIG_USB_ISP1362_HCD) 586 590 &isp1362_hcd_device, 587 591 #endif 588 592 589 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 593 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 590 594 &ezkit_flash_device, 591 595 #endif 592 596 593 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 594 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 597 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 595 598 &bfin_capture_device, 596 599 #endif 597 600 598 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 601 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 599 602 &bfin_i2s, 600 603 #endif 601 604 602 - #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) 605 + #if IS_ENABLED(CONFIG_SND_BF5XX_AC97) 603 606 &bfin_ac97, 604 607 #endif 605 608 606 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 607 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 609 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 608 610 &bfin_ad1836_machine, 609 611 #endif 610 612 }; 611 613 612 614 static int __init net2272_init(void) 613 615 { 614 - #if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE) 616 + #if IS_ENABLED(CONFIG_USB_NET2272) 615 617 int ret; 616 618 617 619 ret = gpio_request(GPIO_PF11, "net2272"); ··· 635 641 if (ret < 0) 636 642 return ret; 637 643 638 - #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 644 + #if IS_ENABLED(CONFIG_SMC91X) 639 645 bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 12)); 640 646 SSYNC(); 641 647 #endif 642 648 643 - #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) 649 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD183X) 644 650 bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 15)); 645 651 bfin_write_FIO0_FLAG_S(1 << 15); 646 652 SSYNC();
+4 -4
arch/blackfin/mach-bf561/boards/tepla.c
··· 42 42 .resource = smc91x_resources, 43 43 }; 44 44 45 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 45 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 46 46 #ifdef CONFIG_SERIAL_BFIN_UART0 47 47 static struct resource bfin_uart0_resources[] = { 48 48 { ··· 93 93 #endif 94 94 #endif 95 95 96 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 96 + #if IS_ENABLED(CONFIG_BFIN_SIR) 97 97 #ifdef CONFIG_BFIN_SIR0 98 98 static struct resource bfin_sir0_resources[] = { 99 99 { ··· 125 125 static struct platform_device *tepla_devices[] __initdata = { 126 126 &smc91x_device, 127 127 128 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 128 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 129 129 #ifdef CONFIG_SERIAL_BFIN_UART0 130 130 &bfin_uart0_device, 131 131 #endif 132 132 #endif 133 133 134 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 134 + #if IS_ENABLED(CONFIG_BFIN_SIR) 135 135 #ifdef CONFIG_BFIN_SIR0 136 136 &bfin_sir0_device, 137 137 #endif
+58 -73
arch/blackfin/mach-bf609/boards/ezkit.c
··· 39 39 * Driver needs to know address, irq and flag pin. 40 40 */ 41 41 42 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 42 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 43 43 #include <linux/usb/isp1760.h> 44 44 static struct resource bfin_isp1760_resources[] = { 45 45 [0] = { ··· 74 74 }; 75 75 #endif 76 76 77 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 77 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 78 78 #include <asm/bfin_rotary.h> 79 79 80 80 static struct bfin_rotary_platform_data bfin_rotary_data = { ··· 105 105 }; 106 106 #endif 107 107 108 - #if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE) 108 + #if IS_ENABLED(CONFIG_STMMAC_ETH) 109 109 #include <linux/stmmac.h> 110 110 #include <linux/phy.h> 111 111 ··· 159 159 }; 160 160 #endif 161 161 162 - #if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE) 162 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X) 163 163 #include <linux/input/adxl34x.h> 164 164 static const struct adxl34x_platform_data adxl34x_info = { 165 165 .x_axis_offset = 0, ··· 198 198 }; 199 199 #endif 200 200 201 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 201 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 202 202 static struct platform_device rtc_device = { 203 203 .name = "rtc-bfin", 204 204 .id = -1, 205 205 }; 206 206 #endif 207 207 208 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 208 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 209 209 #ifdef CONFIG_SERIAL_BFIN_UART0 210 210 static struct resource bfin_uart0_resources[] = { 211 211 { ··· 355 355 #endif 356 356 #endif 357 357 358 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 358 + #if IS_ENABLED(CONFIG_BFIN_SIR) 359 359 #ifdef CONFIG_BFIN_SIR0 360 360 static struct resource bfin_sir0_resources[] = { 361 361 { ··· 408 408 #endif 409 409 #endif 410 410 411 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 411 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 412 412 static struct resource musb_resources[] = { 413 413 [0] = { 414 414 .start = 0xFFCC1000, ··· 464 464 }; 465 465 #endif 466 466 467 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 467 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 468 468 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 469 469 static struct resource bfin_sport0_uart_resources[] = { 470 470 { ··· 569 569 #endif 570 570 #endif 571 571 572 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 572 + #if IS_ENABLED(CONFIG_CAN_BFIN) 573 573 574 574 static unsigned short bfin_can0_peripherals[] = { 575 575 P_CAN0_RX, P_CAN0_TX, 0 ··· 610 610 611 611 #endif 612 612 613 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 613 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 614 614 static struct mtd_partition partition_info[] = { 615 615 { 616 616 .name = "bootloader(nand)", ··· 660 660 }; 661 661 #endif 662 662 663 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 663 + #if IS_ENABLED(CONFIG_SDH_BFIN) 664 664 665 665 static struct bfin_sd_host bfin_sdh_data = { 666 666 .dma_chan = CH_RSI, ··· 677 677 }; 678 678 #endif 679 679 680 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 680 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 681 681 static struct mtd_partition ezkit_partitions[] = { 682 682 { 683 683 .name = "bootloader(nor)", ··· 741 741 }; 742 742 #endif 743 743 744 - #if defined(CONFIG_MTD_M25P80) \ 745 - || defined(CONFIG_MTD_M25P80_MODULE) 744 + #if IS_ENABLED(CONFIG_MTD_M25P80) 746 745 /* SPI flash chip (w25q32) */ 747 746 static struct mtd_partition bfin_spi_flash_partitions[] = { 748 747 { ··· 772 773 }; 773 774 #endif 774 775 775 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 776 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 776 777 static struct bfin_spi3_chip spidev_chip_info = { 777 778 .enable_dma = true, 778 779 }; 779 780 #endif 780 781 781 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 782 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 782 783 static struct platform_device bfin_i2s_pcm = { 783 784 .name = "bfin-i2s-pcm-audio", 784 785 .id = -1, 785 786 }; 786 787 #endif 787 788 788 - #if defined(CONFIG_SND_BF6XX_SOC_I2S) || \ 789 - defined(CONFIG_SND_BF6XX_SOC_I2S_MODULE) 789 + #if IS_ENABLED(CONFIG_SND_BF6XX_SOC_I2S) 790 790 #include <asm/bfin_sport3.h> 791 791 static struct resource bfin_snd_resources[] = { 792 792 { ··· 839 841 }; 840 842 #endif 841 843 842 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) \ 843 - || defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 844 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 844 845 static const char * const ad1836_link[] = { 845 846 "bfin-i2s.0", 846 847 "spi0.76", ··· 853 856 }; 854 857 #endif 855 858 856 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) || \ 857 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61_MODULE) 859 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) 858 860 static struct platform_device adau1761_device = { 859 861 .name = "bfin-eval-adau1x61", 860 862 }; 861 863 #endif 862 864 863 - #if defined(CONFIG_SND_SOC_ADAU1761) || defined(CONFIG_SND_SOC_ADAU1761_MODULE) 865 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1761) 864 866 #include <sound/adau17x1.h> 865 867 static struct adau1761_platform_data adau1761_info = { 866 868 .lineout_mode = ADAU1761_OUTPUT_MODE_LINE, ··· 867 871 }; 868 872 #endif 869 873 870 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 871 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 874 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 872 875 #include <linux/videodev2.h> 873 876 #include <media/blackfin/bfin_capture.h> 874 877 #include <media/blackfin/ppi.h> ··· 877 882 P_PPI0_D4, P_PPI0_D5, P_PPI0_D6, P_PPI0_D7, 878 883 P_PPI0_D8, P_PPI0_D9, P_PPI0_D10, P_PPI0_D11, 879 884 P_PPI0_D12, P_PPI0_D13, P_PPI0_D14, P_PPI0_D15, 880 - #if !defined(CONFIG_VIDEO_VS6624) && !defined(CONFIG_VIDEO_VS6624_MODULE) 885 + #if !IS_ENABLED(CONFIG_VIDEO_VS6624) 881 886 P_PPI0_D16, P_PPI0_D17, P_PPI0_D18, P_PPI0_D19, 882 887 P_PPI0_D20, P_PPI0_D21, P_PPI0_D22, P_PPI0_D23, 883 888 #endif ··· 893 898 .pin_req = ppi_req, 894 899 }; 895 900 896 - #if defined(CONFIG_VIDEO_VS6624) \ 897 - || defined(CONFIG_VIDEO_VS6624_MODULE) 901 + #if IS_ENABLED(CONFIG_VIDEO_VS6624) 898 902 static struct v4l2_input vs6624_inputs[] = { 899 903 { 900 904 .index = 0, ··· 930 936 }; 931 937 #endif 932 938 933 - #if defined(CONFIG_VIDEO_ADV7842) \ 934 - || defined(CONFIG_VIDEO_ADV7842_MODULE) 939 + #if IS_ENABLED(CONFIG_VIDEO_ADV7842) 935 940 #include <media/adv7842.h> 936 941 937 942 static struct v4l2_input adv7842_inputs[] = { ··· 1060 1067 }; 1061 1068 #endif 1062 1069 1063 - #if defined(CONFIG_VIDEO_BLACKFIN_DISPLAY) \ 1064 - || defined(CONFIG_VIDEO_BLACKFIN_DISPLAY_MODULE) 1070 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_DISPLAY) 1065 1071 #include <linux/videodev2.h> 1066 1072 #include <media/blackfin/bfin_display.h> 1067 1073 #include <media/blackfin/ppi.h> ··· 1082 1090 .pin_req = ppi_req_disp, 1083 1091 }; 1084 1092 1085 - #if defined(CONFIG_VIDEO_ADV7511) \ 1086 - || defined(CONFIG_VIDEO_ADV7511_MODULE) 1093 + #if IS_ENABLED(CONFIG_VIDEO_ADV7511) 1087 1094 #include <media/adv7511.h> 1088 1095 1089 1096 static struct v4l2_output adv7511_outputs[] = { ··· 1304 1313 }; 1305 1314 #endif 1306 1315 1307 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 1316 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 1308 1317 static const struct ad7877_platform_data bfin_ad7877_ts_info = { 1309 1318 .model = 7877, 1310 1319 .vref_delay_usecs = 50, /* internal, no capacitor */ ··· 1670 1679 1671 1680 #endif 1672 1681 1673 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1682 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 1674 1683 #include <linux/input.h> 1675 1684 #include <linux/gpio_keys.h> 1676 1685 ··· 1693 1702 #endif 1694 1703 1695 1704 static struct spi_board_info bfin_spi_board_info[] __initdata = { 1696 - #if defined(CONFIG_MTD_M25P80) \ 1697 - || defined(CONFIG_MTD_M25P80_MODULE) 1705 + #if IS_ENABLED(CONFIG_MTD_M25P80) 1698 1706 { 1699 1707 /* the modalias must be the same as spi device driver name */ 1700 1708 .modalias = "m25p80", /* Name of spi_driver for this device */ ··· 1705 1715 .mode = SPI_MODE_3, 1706 1716 }, 1707 1717 #endif 1708 - #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE) 1718 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_AD7877) 1709 1719 { 1710 1720 .modalias = "ad7877", 1711 1721 .platform_data = &bfin_ad7877_ts_info, ··· 1715 1725 .chip_select = MAX_CTRL_CS + GPIO_PC15, /* SPI_SSEL4 */ 1716 1726 }, 1717 1727 #endif 1718 - #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) 1728 + #if IS_ENABLED(CONFIG_SPI_SPIDEV) 1719 1729 { 1720 1730 .modalias = "spidev", 1721 1731 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ ··· 1724 1734 .controller_data = &spidev_chip_info, 1725 1735 }, 1726 1736 #endif 1727 - #if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE) 1737 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_SPI) 1728 1738 { 1729 1739 .modalias = "adxl34x", 1730 1740 .platform_data = &adxl34x_info, ··· 1808 1818 }; 1809 1819 #endif /* spi master and devices */ 1810 1820 1811 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 1821 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 1812 1822 static const u16 bfin_twi0_pins[] = {P_TWI0_SCL, P_TWI0_SDA, 0}; 1813 1823 1814 1824 static struct resource bfin_twi0_resource[] = { ··· 1861 1871 #endif 1862 1872 1863 1873 static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { 1864 - #if defined(CONFIG_INPUT_ADXL34X_I2C) || defined(CONFIG_INPUT_ADXL34X_I2C_MODULE) 1874 + #if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C) 1865 1875 { 1866 1876 I2C_BOARD_INFO("adxl34x", 0x53), 1867 1877 .irq = IRQ_PC5, 1868 1878 .platform_data = (void *)&adxl34x_info, 1869 1879 }, 1870 1880 #endif 1871 - #if defined(CONFIG_SND_SOC_ADAU1761) || defined(CONFIG_SND_SOC_ADAU1761_MODULE) 1881 + #if IS_ENABLED(CONFIG_SND_SOC_ADAU1761) 1872 1882 { 1873 1883 I2C_BOARD_INFO("adau1761", 0x38), 1874 1884 .platform_data = (void *)&adau1761_info 1875 1885 }, 1876 1886 #endif 1877 - #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) 1887 + #if IS_ENABLED(CONFIG_SND_SOC_SSM2602) 1878 1888 { 1879 1889 I2C_BOARD_INFO("ssm2602", 0x1b), 1880 1890 }, ··· 1932 1942 &bfin_gpg_device, 1933 1943 #endif 1934 1944 1935 - #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) 1945 + #if IS_ENABLED(CONFIG_RTC_DRV_BFIN) 1936 1946 &rtc_device, 1937 1947 #endif 1938 1948 1939 - #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) 1949 + #if IS_ENABLED(CONFIG_SERIAL_BFIN) 1940 1950 #ifdef CONFIG_SERIAL_BFIN_UART0 1941 1951 &bfin_uart0_device, 1942 1952 #endif ··· 1945 1955 #endif 1946 1956 #endif 1947 1957 1948 - #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 1958 + #if IS_ENABLED(CONFIG_BFIN_SIR) 1949 1959 #ifdef CONFIG_BFIN_SIR0 1950 1960 &bfin_sir0_device, 1951 1961 #endif ··· 1954 1964 #endif 1955 1965 #endif 1956 1966 1957 - #if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE) 1967 + #if IS_ENABLED(CONFIG_STMMAC_ETH) 1958 1968 &bfin_eth_device, 1959 1969 #endif 1960 1970 1961 - #if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE) 1971 + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) 1962 1972 &musb_device, 1963 1973 #endif 1964 1974 1965 - #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 1975 + #if IS_ENABLED(CONFIG_USB_ISP1760_HCD) 1966 1976 &bfin_isp1760_device, 1967 1977 #endif 1968 1978 1969 - #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 1979 + #if IS_ENABLED(CONFIG_SERIAL_BFIN_SPORT) 1970 1980 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART 1971 1981 &bfin_sport0_uart_device, 1972 1982 #endif ··· 1978 1988 #endif 1979 1989 #endif 1980 1990 1981 - #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) 1991 + #if IS_ENABLED(CONFIG_CAN_BFIN) 1982 1992 &bfin_can0_device, 1983 1993 #endif 1984 1994 1985 - #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) 1995 + #if IS_ENABLED(CONFIG_MTD_NAND_BF5XX) 1986 1996 &bfin_nand_device, 1987 1997 #endif 1988 1998 1989 - #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE) 1999 + #if IS_ENABLED(CONFIG_SDH_BFIN) 1990 2000 &bfin_sdh_device, 1991 2001 #endif 1992 2002 ··· 1995 2005 &bf60x_spi_master1, 1996 2006 #endif 1997 2007 1998 - #if defined(CONFIG_INPUT_BFIN_ROTARY) || defined(CONFIG_INPUT_BFIN_ROTARY_MODULE) 2008 + #if IS_ENABLED(CONFIG_INPUT_BFIN_ROTARY) 1999 2009 &bfin_rotary_device, 2000 2010 #endif 2001 2011 2002 - #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) 2012 + #if IS_ENABLED(CONFIG_I2C_BLACKFIN_TWI) 2003 2013 &i2c_bfin_twi0_device, 2004 2014 #if !defined(CONFIG_BF542) 2005 2015 &i2c_bfin_twi1_device, ··· 2014 2024 &bfin_crypto_crc_device, 2015 2025 #endif 2016 2026 2017 - #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 2027 + #if IS_ENABLED(CONFIG_KEYBOARD_GPIO) 2018 2028 &bfin_device_gpiokeys, 2019 2029 #endif 2020 2030 2021 - #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) 2031 + #if IS_ENABLED(CONFIG_MTD_PHYSMAP) 2022 2032 &ezkit_flash_device, 2023 2033 #endif 2024 - #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) 2034 + #if IS_ENABLED(CONFIG_SND_BF5XX_I2S) 2025 2035 &bfin_i2s_pcm, 2026 2036 #endif 2027 - #if defined(CONFIG_SND_BF6XX_SOC_I2S) || \ 2028 - defined(CONFIG_SND_BF6XX_SOC_I2S_MODULE) 2037 + #if IS_ENABLED(CONFIG_SND_BF6XX_SOC_I2S) 2029 2038 &bfin_i2s, 2030 2039 #endif 2031 - #if defined(CONFIG_SND_BF5XX_SOC_AD1836) || \ 2032 - defined(CONFIG_SND_BF5XX_SOC_AD1836_MODULE) 2040 + #if IS_ENABLED(CONFIG_SND_BF5XX_SOC_AD1836) 2033 2041 &bfin_ad1836_machine, 2034 2042 #endif 2035 - #if defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) || \ 2036 - defined(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61_MODULE) 2043 + #if IS_ENABLED(CONFIG_SND_SOC_BFIN_EVAL_ADAU1X61) 2037 2044 &adau1761_device, 2038 2045 #endif 2039 - #if defined(CONFIG_VIDEO_BLACKFIN_CAPTURE) \ 2040 - || defined(CONFIG_VIDEO_BLACKFIN_CAPTURE_MODULE) 2046 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_CAPTURE) 2041 2047 &bfin_capture_device, 2042 2048 #endif 2043 - #if defined(CONFIG_VIDEO_BLACKFIN_DISPLAY) \ 2044 - || defined(CONFIG_VIDEO_BLACKFIN_DISPLAY_MODULE) 2049 + #if IS_ENABLED(CONFIG_VIDEO_BLACKFIN_DISPLAY) 2045 2050 &bfin_display_device, 2046 2051 #endif 2047 2052 ··· 2060 2075 PIN_MAP_MUX_GROUP_DEFAULT("physmap-flash.0", "pinctrl-adi2.0", NULL, "smc0"), 2061 2076 PIN_MAP_MUX_GROUP_DEFAULT("bf609_nl8048.2", "pinctrl-adi2.0", NULL, "ppi2_16b"), 2062 2077 PIN_MAP_MUX_GROUP_DEFAULT("bfin_display.0", "pinctrl-adi2.0", NULL, "ppi0_16b"), 2063 - #if defined(CONFIG_VIDEO_MT9M114) || defined(CONFIG_VIDEO_MT9M114_MODULE) 2078 + #if IS_ENABLED(CONFIG_VIDEO_MT9M114) 2064 2079 PIN_MAP_MUX_GROUP_DEFAULT("bfin_capture.0", "pinctrl-adi2.0", NULL, "ppi0_8b"), 2065 - #elif defined(CONFIG_VIDEO_VS6624) || defined(CONFIG_VIDEO_VS6624_MODULE) 2080 + #elif IS_ENABLED(CONFIG_VIDEO_VS6624) 2066 2081 PIN_MAP_MUX_GROUP_DEFAULT("bfin_capture.0", "pinctrl-adi2.0", NULL, "ppi0_16b"), 2067 2082 #else 2068 2083 PIN_MAP_MUX_GROUP_DEFAULT("bfin_capture.0", "pinctrl-adi2.0", NULL, "ppi0_24b"),
-18
arch/blackfin/mach-bf609/clock.c
··· 73 73 bfin_write32(reg, val2); 74 74 } 75 75 76 - static void clk_reg_set_bits(u32 reg, uint32_t mask) 77 - { 78 - u32 val; 79 - 80 - val = bfin_read32(reg); 81 - val |= mask; 82 - bfin_write32(reg, val); 83 - } 84 - 85 - static void clk_reg_clear_bits(u32 reg, uint32_t mask) 86 - { 87 - u32 val; 88 - 89 - val = bfin_read32(reg); 90 - val &= ~mask; 91 - bfin_write32(reg, val); 92 - } 93 - 94 76 int wait_for_pll_align(void) 95 77 { 96 78 int i = 10000;
+1 -1
arch/blackfin/mach-bf609/pm.c
··· 210 210 211 211 #ifdef CONFIG_PM_BFIN_WAKE_PB15 212 212 wakeup |= PB15WE; 213 - # if CONFIG_PM_BFIN_WAKE_PA15_POL 213 + # if CONFIG_PM_BFIN_WAKE_PB15_POL 214 214 wakeup_pol |= PB15WE; 215 215 # endif 216 216 #endif