diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-02 12:33:47 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-09-02 12:33:47 -0400 |
commit | 260caadebde754a3851803a17a8287478c090a80 (patch) | |
tree | 1c91bb7ecc1bf119217aa1b2db7172f3325d0731 | |
parent | 55d421b40cbb2d8bec71a1b92671e48d2ee7ca98 (diff) | |
parent | 502ad2a669f146e0801973c42e55478322f2d382 (diff) |
Merge tag 'omap-for-v4.9/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup
Merge "omap soc updates for v4.9 merge window" from Tony Lindgren:
Two patches from Javier Martinez Canillas <javier@osg.samsung.com>
to update mach-omap1 and mach-oamp2 to use IS_ENABLED macro.
* tag 'omap-for-v4.9/soc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP2+: use IS_ENABLED() instead of checking for built-in or module
ARM: OMAP1: use IS_ENABLED() instead of checking for built-in or module
24 files changed, 41 insertions, 52 deletions
diff --git a/arch/arm/mach-omap1/board-h2-mmc.c b/arch/arm/mach-omap1/board-h2-mmc.c index 7119ef28e0ad..357be2debc9d 100644 --- a/arch/arm/mach-omap1/board-h2-mmc.c +++ b/arch/arm/mach-omap1/board-h2-mmc.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "board-h2.h" | 19 | #include "board-h2.h" |
20 | #include "mmc.h" | 20 | #include "mmc.h" |
21 | 21 | ||
22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 22 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
23 | 23 | ||
24 | static int mmc_set_power(struct device *dev, int slot, int power_on, | 24 | static int mmc_set_power(struct device *dev, int slot, int power_on, |
25 | int vdd) | 25 | int vdd) |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index cd146ed0538d..675254ee4b1e 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -349,7 +349,7 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
349 | #if IS_ENABLED(CONFIG_USB_OMAP) | 349 | #if IS_ENABLED(CONFIG_USB_OMAP) |
350 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 350 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
351 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ | 351 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ |
352 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 352 | #elif IS_ENABLED(CONFIG_USB_OHCI_HCD) |
353 | /* needs OTG cable, or NONSTANDARD (B-to-MiniB) */ | 353 | /* needs OTG cable, or NONSTANDARD (B-to-MiniB) */ |
354 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ | 354 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ |
355 | #endif | 355 | #endif |
diff --git a/arch/arm/mach-omap1/board-h3-mmc.c b/arch/arm/mach-omap1/board-h3-mmc.c index 43aab63cbc39..4f58bfa5e754 100644 --- a/arch/arm/mach-omap1/board-h3-mmc.c +++ b/arch/arm/mach-omap1/board-h3-mmc.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "board-h3.h" | 20 | #include "board-h3.h" |
21 | #include "mmc.h" | 21 | #include "mmc.h" |
22 | 22 | ||
23 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 23 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
24 | 24 | ||
25 | static int mmc_set_power(struct device *dev, int slot, int power_on, | 25 | static int mmc_set_power(struct device *dev, int slot, int power_on, |
26 | int vdd) | 26 | int vdd) |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index f7c8c63dd532..e62f9d454f10 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -368,7 +368,7 @@ static struct omap_usb_config h3_usb_config __initdata = { | |||
368 | 368 | ||
369 | #if IS_ENABLED(CONFIG_USB_OMAP) | 369 | #if IS_ENABLED(CONFIG_USB_OMAP) |
370 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 370 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
371 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 371 | #elif IS_ENABLED(CONFIG_USB_OHCI_HCD) |
372 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ | 372 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ |
373 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ | 373 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ |
374 | #endif | 374 | #endif |
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index 9525ef9bc6c0..e424df901dbd 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -401,7 +401,7 @@ static struct platform_device lcd_device = { | |||
401 | }; | 401 | }; |
402 | 402 | ||
403 | /* MMC Card */ | 403 | /* MMC Card */ |
404 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 404 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
405 | static struct omap_mmc_platform_data htc_mmc1_data = { | 405 | static struct omap_mmc_platform_data htc_mmc1_data = { |
406 | .nr_slots = 1, | 406 | .nr_slots = 1, |
407 | .switch_slot = NULL, | 407 | .switch_slot = NULL, |
@@ -586,7 +586,7 @@ static void __init htcherald_init(void) | |||
586 | 586 | ||
587 | omap_register_i2c_bus(1, 100, NULL, 0); | 587 | omap_register_i2c_bus(1, 100, NULL, 0); |
588 | 588 | ||
589 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 589 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
590 | htc_mmc_data[0] = &htc_mmc1_data; | 590 | htc_mmc_data[0] = &htc_mmc1_data; |
591 | omap1_init_mmc(htc_mmc_data, 1); | 591 | omap1_init_mmc(htc_mmc_data, 1); |
592 | #endif | 592 | #endif |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index ae90bd02b3bf..67e188271643 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -315,7 +315,7 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
315 | #if IS_ENABLED(CONFIG_USB_OMAP) | 315 | #if IS_ENABLED(CONFIG_USB_OMAP) |
316 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 316 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
317 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ | 317 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ |
318 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 318 | #elif IS_ENABLED(CONFIG_USB_OHCI_HCD) |
319 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ | 319 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ |
320 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ | 320 | .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ |
321 | #endif | 321 | #endif |
@@ -328,7 +328,7 @@ static struct omap_lcd_config innovator1610_lcd_config __initdata = { | |||
328 | }; | 328 | }; |
329 | #endif | 329 | #endif |
330 | 330 | ||
331 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 331 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
332 | 332 | ||
333 | static int mmc_set_power(struct device *dev, int slot, int power_on, | 333 | static int mmc_set_power(struct device *dev, int slot, int power_on, |
334 | int vdd) | 334 | int vdd) |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index dd3a3ad797ea..ee8d9f553db4 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -159,7 +159,7 @@ static struct omap_usb_config nokia770_usb_config __initdata = { | |||
159 | .extcon = "tahvo-usb", | 159 | .extcon = "tahvo-usb", |
160 | }; | 160 | }; |
161 | 161 | ||
162 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 162 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
163 | 163 | ||
164 | #define NOKIA770_GPIO_MMC_POWER 41 | 164 | #define NOKIA770_GPIO_MMC_POWER 41 |
165 | #define NOKIA770_GPIO_MMC_SWITCH 23 | 165 | #define NOKIA770_GPIO_MMC_SWITCH 23 |
@@ -216,7 +216,7 @@ static inline void nokia770_mmc_init(void) | |||
216 | } | 216 | } |
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | #if defined(CONFIG_I2C_CBUS_GPIO) || defined(CONFIG_I2C_CBUS_GPIO_MODULE) | 219 | #if IS_ENABLED(CONFIG_I2C_CBUS_GPIO) |
220 | static struct i2c_cbus_platform_data nokia770_cbus_data = { | 220 | static struct i2c_cbus_platform_data nokia770_cbus_data = { |
221 | .clk_gpio = OMAP_MPUIO(9), | 221 | .clk_gpio = OMAP_MPUIO(9), |
222 | .dat_gpio = OMAP_MPUIO(10), | 222 | .dat_gpio = OMAP_MPUIO(10), |
diff --git a/arch/arm/mach-omap1/board-sx1-mmc.c b/arch/arm/mach-omap1/board-sx1-mmc.c index a9373570bbb1..79f0af8bfae0 100644 --- a/arch/arm/mach-omap1/board-sx1-mmc.c +++ b/arch/arm/mach-omap1/board-sx1-mmc.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include "mmc.h" | 21 | #include "mmc.h" |
22 | 22 | ||
23 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 23 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
24 | 24 | ||
25 | static int mmc_set_power(struct device *dev, int slot, int power_on, | 25 | static int mmc_set_power(struct device *dev, int slot, int power_on, |
26 | int vdd) | 26 | int vdd) |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 8c8be861fff2..baaf902b7016 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "mmc.h" | 33 | #include "mmc.h" |
34 | #include "sram.h" | 34 | #include "sram.h" |
35 | 35 | ||
36 | #if defined(CONFIG_RTC_DRV_OMAP) || defined(CONFIG_RTC_DRV_OMAP_MODULE) | 36 | #if IS_ENABLED(CONFIG_RTC_DRV_OMAP) |
37 | 37 | ||
38 | #define OMAP_RTC_BASE 0xfffb4800 | 38 | #define OMAP_RTC_BASE 0xfffb4800 |
39 | 39 | ||
@@ -72,7 +72,7 @@ static inline void omap_init_mbox(void) { } | |||
72 | 72 | ||
73 | /*-------------------------------------------------------------------------*/ | 73 | /*-------------------------------------------------------------------------*/ |
74 | 74 | ||
75 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 75 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
76 | 76 | ||
77 | static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller, | 77 | static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller, |
78 | int controller_nr) | 78 | int controller_nr) |
@@ -230,7 +230,7 @@ void __init omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | |||
230 | /*-------------------------------------------------------------------------*/ | 230 | /*-------------------------------------------------------------------------*/ |
231 | 231 | ||
232 | /* OMAP7xx SPI support */ | 232 | /* OMAP7xx SPI support */ |
233 | #if defined(CONFIG_SPI_OMAP_100K) || defined(CONFIG_SPI_OMAP_100K_MODULE) | 233 | #if IS_ENABLED(CONFIG_SPI_OMAP_100K) |
234 | 234 | ||
235 | struct platform_device omap_spi1 = { | 235 | struct platform_device omap_spi1 = { |
236 | .name = "omap1_spi100k", | 236 | .name = "omap1_spi100k", |
@@ -312,7 +312,7 @@ static inline void omap_init_sti(void) {} | |||
312 | * mcbsp1..3 = 5..7 | 312 | * mcbsp1..3 = 5..7 |
313 | */ | 313 | */ |
314 | 314 | ||
315 | #if defined(CONFIG_SPI_OMAP_UWIRE) || defined(CONFIG_SPI_OMAP_UWIRE_MODULE) | 315 | #if IS_ENABLED(CONFIG_SPI_OMAP_UWIRE) |
316 | 316 | ||
317 | #define OMAP_UWIRE_BASE 0xfffb3000 | 317 | #define OMAP_UWIRE_BASE 0xfffb3000 |
318 | 318 | ||
@@ -418,7 +418,7 @@ static int __init omap1_init_devices(void) | |||
418 | } | 418 | } |
419 | arch_initcall(omap1_init_devices); | 419 | arch_initcall(omap1_init_devices); |
420 | 420 | ||
421 | #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) | 421 | #if IS_ENABLED(CONFIG_OMAP_WATCHDOG) |
422 | 422 | ||
423 | static struct resource wdt_resources[] = { | 423 | static struct resource wdt_resources[] = { |
424 | { | 424 | { |
diff --git a/arch/arm/mach-omap1/fb.c b/arch/arm/mach-omap1/fb.c index c770d45c7226..ddab04087b7a 100644 --- a/arch/arm/mach-omap1/fb.c +++ b/arch/arm/mach-omap1/fb.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
35 | 35 | ||
36 | #if defined(CONFIG_FB_OMAP) || defined(CONFIG_FB_OMAP_MODULE) | 36 | #if IS_ENABLED(CONFIG_FB_OMAP) |
37 | 37 | ||
38 | static bool omapfb_lcd_configured; | 38 | static bool omapfb_lcd_configured; |
39 | static struct omapfb_platform_data omapfb_config; | 39 | static struct omapfb_platform_data omapfb_config; |
diff --git a/arch/arm/mach-omap1/include/mach/usb.h b/arch/arm/mach-omap1/include/mach/usb.h index 2c263051dc51..a7c5559caef2 100644 --- a/arch/arm/mach-omap1/include/mach/usb.h +++ b/arch/arm/mach-omap1/include/mach/usb.h | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | void omap_otg_init(struct omap_usb_config *config); | 13 | void omap_otg_init(struct omap_usb_config *config); |
14 | 14 | ||
15 | #if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE) | 15 | #if IS_ENABLED(CONFIG_USB) |
16 | void omap1_usb_init(struct omap_usb_config *pdata); | 16 | void omap1_usb_init(struct omap_usb_config *pdata); |
17 | #else | 17 | #else |
18 | static inline void omap1_usb_init(struct omap_usb_config *pdata) | 18 | static inline void omap1_usb_init(struct omap_usb_config *pdata) |
diff --git a/arch/arm/mach-omap1/mmc.h b/arch/arm/mach-omap1/mmc.h index 39c2b13de884..d7b46880e4ca 100644 --- a/arch/arm/mach-omap1/mmc.h +++ b/arch/arm/mach-omap1/mmc.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #define OMAP1_MMC1_BASE 0xfffb7800 | 7 | #define OMAP1_MMC1_BASE 0xfffb7800 |
8 | #define OMAP1_MMC2_BASE 0xfffb7c00 /* omap16xx only */ | 8 | #define OMAP1_MMC2_BASE 0xfffb7c00 /* omap16xx only */ |
9 | 9 | ||
10 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 10 | #if IS_ENABLED(CONFIG_MMC_OMAP) |
11 | void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, | 11 | void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, |
12 | int nr_controllers); | 12 | int nr_controllers); |
13 | #else | 13 | #else |
diff --git a/arch/arm/mach-omap1/usb.c b/arch/arm/mach-omap1/usb.c index 4118db50d5e8..2506e598a067 100644 --- a/arch/arm/mach-omap1/usb.c +++ b/arch/arm/mach-omap1/usb.c | |||
@@ -136,7 +136,7 @@ omap_otg_init(struct omap_usb_config *config) | |||
136 | } | 136 | } |
137 | #endif | 137 | #endif |
138 | 138 | ||
139 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 139 | #if IS_ENABLED(CONFIG_USB_OHCI_HCD) |
140 | if (config->otg || config->register_host) { | 140 | if (config->otg || config->register_host) { |
141 | struct platform_device *ohci_device = config->ohci_device; | 141 | struct platform_device *ohci_device = config->ohci_device; |
142 | int status; | 142 | int status; |
@@ -221,7 +221,7 @@ static inline void udc_device_init(struct omap_usb_config *pdata) | |||
221 | 221 | ||
222 | #endif | 222 | #endif |
223 | 223 | ||
224 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 224 | #if IS_ENABLED(CONFIG_USB_OHCI_HCD) |
225 | 225 | ||
226 | /* The dmamask must be set for OHCI to work */ | 226 | /* The dmamask must be set for OHCI to work */ |
227 | static u64 ohci_dmamask = ~(u32)0; | 227 | static u64 ohci_dmamask = ~(u32)0; |
@@ -612,7 +612,7 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config) | |||
612 | } | 612 | } |
613 | #endif | 613 | #endif |
614 | 614 | ||
615 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 615 | #if IS_ENABLED(CONFIG_USB_OHCI_HCD) |
616 | if (config->register_host) { | 616 | if (config->register_host) { |
617 | int status; | 617 | int status; |
618 | 618 | ||
diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index 70b21cc279ba..2188dc30e232 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c | |||
@@ -81,8 +81,7 @@ __init board_nor_init(struct mtd_partition *nor_parts, u8 nr_parts, u8 cs) | |||
81 | pr_err("Unable to register NOR device\n"); | 81 | pr_err("Unable to register NOR device\n"); |
82 | } | 82 | } |
83 | 83 | ||
84 | #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ | 84 | #if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) |
85 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
86 | static struct omap_onenand_platform_data board_onenand_data = { | 85 | static struct omap_onenand_platform_data board_onenand_data = { |
87 | .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ | 86 | .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ |
88 | }; | 87 | }; |
@@ -97,10 +96,9 @@ __init board_onenand_init(struct mtd_partition *onenand_parts, | |||
97 | 96 | ||
98 | gpmc_onenand_init(&board_onenand_data); | 97 | gpmc_onenand_init(&board_onenand_data); |
99 | } | 98 | } |
100 | #endif /* CONFIG_MTD_ONENAND_OMAP2 || CONFIG_MTD_ONENAND_OMAP2_MODULE */ | 99 | #endif /* IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) */ |
101 | 100 | ||
102 | #if defined(CONFIG_MTD_NAND_OMAP2) || \ | 101 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) |
103 | defined(CONFIG_MTD_NAND_OMAP2_MODULE) | ||
104 | 102 | ||
105 | /* Note that all values in this struct are in nanoseconds */ | 103 | /* Note that all values in this struct are in nanoseconds */ |
106 | struct gpmc_timings nand_default_timings[1] = { | 104 | struct gpmc_timings nand_default_timings[1] = { |
@@ -144,7 +142,7 @@ __init board_nand_init(struct mtd_partition *nand_parts, u8 nr_parts, u8 cs, | |||
144 | board_nand_data.ecc_opt = OMAP_ECC_HAM1_CODE_SW; | 142 | board_nand_data.ecc_opt = OMAP_ECC_HAM1_CODE_SW; |
145 | gpmc_nand_init(&board_nand_data, gpmc_t); | 143 | gpmc_nand_init(&board_nand_data, gpmc_t); |
146 | } | 144 | } |
147 | #endif /* CONFIG_MTD_NAND_OMAP2 || CONFIG_MTD_NAND_OMAP2_MODULE */ | 145 | #endif /* IS_ENABLED(CONFIG_MTD_NAND_OMAP2) */ |
148 | 146 | ||
149 | /** | 147 | /** |
150 | * get_gpmc0_type - Reads the FPGA DIP_SWITCH_INPUT_REGISTER2 to get | 148 | * get_gpmc0_type - Reads the FPGA DIP_SWITCH_INPUT_REGISTER2 to get |
diff --git a/arch/arm/mach-omap2/board-flash.h b/arch/arm/mach-omap2/board-flash.h index ea9aaebe11e7..8b39eec07318 100644 --- a/arch/arm/mach-omap2/board-flash.h +++ b/arch/arm/mach-omap2/board-flash.h | |||
@@ -23,10 +23,7 @@ struct flash_partitions { | |||
23 | int nr_parts; | 23 | int nr_parts; |
24 | }; | 24 | }; |
25 | 25 | ||
26 | #if defined(CONFIG_MTD_NAND_OMAP2) || \ | 26 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) || IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) |
27 | defined(CONFIG_MTD_NAND_OMAP2_MODULE) || \ | ||
28 | defined(CONFIG_MTD_ONENAND_OMAP2) || \ | ||
29 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
30 | extern void board_flash_init(struct flash_partitions [], | 27 | extern void board_flash_init(struct flash_partitions [], |
31 | char chip_sel[][GPMC_CS_NUM], int nand_type); | 28 | char chip_sel[][GPMC_CS_NUM], int nand_type); |
32 | #else | 29 | #else |
@@ -36,8 +33,7 @@ static inline void board_flash_init(struct flash_partitions part[], | |||
36 | } | 33 | } |
37 | #endif | 34 | #endif |
38 | 35 | ||
39 | #if defined(CONFIG_MTD_NAND_OMAP2) || \ | 36 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) |
40 | defined(CONFIG_MTD_NAND_OMAP2_MODULE) | ||
41 | extern void board_nand_init(struct mtd_partition *nand_parts, | 37 | extern void board_nand_init(struct mtd_partition *nand_parts, |
42 | u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t); | 38 | u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t); |
43 | extern struct gpmc_timings nand_default_timings[]; | 39 | extern struct gpmc_timings nand_default_timings[]; |
@@ -49,8 +45,7 @@ static inline void board_nand_init(struct mtd_partition *nand_parts, | |||
49 | #define nand_default_timings NULL | 45 | #define nand_default_timings NULL |
50 | #endif | 46 | #endif |
51 | 47 | ||
52 | #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ | 48 | #if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) |
53 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
54 | extern void board_onenand_init(struct mtd_partition *nand_parts, | 49 | extern void board_onenand_init(struct mtd_partition *nand_parts, |
55 | u8 nr_parts, u8 cs); | 50 | u8 nr_parts, u8 cs); |
56 | #else | 51 | #else |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index b6443a4e0c78..6b6fda65fb3b 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -66,7 +66,7 @@ static void board_check_revision(void) | |||
66 | pr_err("Unknown board\n"); | 66 | pr_err("Unknown board\n"); |
67 | } | 67 | } |
68 | 68 | ||
69 | #if defined(CONFIG_USB_MUSB_TUSB6010) || defined(CONFIG_USB_MUSB_TUSB6010_MODULE) | 69 | #if IS_ENABLED(CONFIG_USB_MUSB_TUSB6010) |
70 | /* | 70 | /* |
71 | * Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and | 71 | * Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and |
72 | * 1.5 V voltage regulators of PM companion chip. Companion chip will then | 72 | * 1.5 V voltage regulators of PM companion chip. Companion chip will then |
@@ -163,8 +163,7 @@ static struct spi_board_info n800_spi_board_info[] __initdata = { | |||
163 | }, | 163 | }, |
164 | }; | 164 | }; |
165 | 165 | ||
166 | #if defined(CONFIG_MENELAUS) && \ | 166 | #if defined(CONFIG_MENELAUS) && IS_ENABLED(CONFIG_MMC_OMAP) |
167 | (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) | ||
168 | 167 | ||
169 | /* | 168 | /* |
170 | * On both N800 and N810, only the first of the two MMC controllers is in use. | 169 | * On both N800 and N810, only the first of the two MMC controllers is in use. |
diff --git a/arch/arm/mach-omap2/common-board-devices.c b/arch/arm/mach-omap2/common-board-devices.c index d246efd9f734..5388fcd3de72 100644 --- a/arch/arm/mach-omap2/common-board-devices.c +++ b/arch/arm/mach-omap2/common-board-devices.c | |||
@@ -29,8 +29,7 @@ | |||
29 | #include "common.h" | 29 | #include "common.h" |
30 | #include "common-board-devices.h" | 30 | #include "common-board-devices.h" |
31 | 31 | ||
32 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ | 32 | #if IS_ENABLED(CONFIG_TOUCHSCREEN_ADS7846) |
33 | defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) | ||
34 | static struct omap2_mcspi_device_config ads7846_mcspi_config = { | 33 | static struct omap2_mcspi_device_config ads7846_mcspi_config = { |
35 | .turbo_mode = 0, | 34 | .turbo_mode = 0, |
36 | }; | 35 | }; |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index d7f1d69daf6d..60a20f3b44de 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -67,7 +67,7 @@ omap_postcore_initcall(omap3_l3_init); | |||
67 | 67 | ||
68 | static inline void omap_init_sti(void) {} | 68 | static inline void omap_init_sti(void) {} |
69 | 69 | ||
70 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) | 70 | #if IS_ENABLED(CONFIG_SPI_OMAP24XX) |
71 | 71 | ||
72 | #include <linux/platform_data/spi-omap2-mcspi.h> | 72 | #include <linux/platform_data/spi-omap2-mcspi.h> |
73 | 73 | ||
@@ -163,9 +163,8 @@ static void __init omap_init_aes(void) | |||
163 | 163 | ||
164 | /*-------------------------------------------------------------------------*/ | 164 | /*-------------------------------------------------------------------------*/ |
165 | 165 | ||
166 | #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \ | 166 | #if IS_ENABLED(CONFIG_VIDEO_OMAP2_VOUT) |
167 | defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE) | 167 | #if IS_ENABLED(CONFIG_FB_OMAP2) |
168 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) | ||
169 | static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = { | 168 | static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = { |
170 | }; | 169 | }; |
171 | #else | 170 | #else |
diff --git a/arch/arm/mach-omap2/drm.c b/arch/arm/mach-omap2/drm.c index facd7406a03d..44fef961bb70 100644 --- a/arch/arm/mach-omap2/drm.c +++ b/arch/arm/mach-omap2/drm.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "soc.h" | 28 | #include "soc.h" |
29 | #include "display.h" | 29 | #include "display.h" |
30 | 30 | ||
31 | #if defined(CONFIG_DRM_OMAP) || defined(CONFIG_DRM_OMAP_MODULE) | 31 | #if IS_ENABLED(CONFIG_DRM_OMAP) |
32 | 32 | ||
33 | static struct omap_drm_platform_data platform_data; | 33 | static struct omap_drm_platform_data platform_data; |
34 | 34 | ||
diff --git a/arch/arm/mach-omap2/fb.c b/arch/arm/mach-omap2/fb.c index 1f1ecf8807eb..ecd00b63181e 100644 --- a/arch/arm/mach-omap2/fb.c +++ b/arch/arm/mach-omap2/fb.c | |||
@@ -90,7 +90,7 @@ int __init omap_init_vrfb(void) | |||
90 | int __init omap_init_vrfb(void) { return 0; } | 90 | int __init omap_init_vrfb(void) { return 0; } |
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) | 93 | #if IS_ENABLED(CONFIG_FB_OMAP2) |
94 | 94 | ||
95 | static u64 omap_fb_dma_mask = ~(u32)0; | 95 | static u64 omap_fb_dma_mask = ~(u32)0; |
96 | static struct omapfb_platform_data omapfb_config; | 96 | static struct omapfb_platform_data omapfb_config; |
diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.h b/arch/arm/mach-omap2/gpmc-smsc911x.h index ea6c9c88c725..99a05b8412fa 100644 --- a/arch/arm/mach-omap2/gpmc-smsc911x.h +++ b/arch/arm/mach-omap2/gpmc-smsc911x.h | |||
@@ -21,7 +21,7 @@ struct omap_smsc911x_platform_data { | |||
21 | u32 flags; | 21 | u32 flags; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 24 | #if IS_ENABLED(CONFIG_SMSC911X) |
25 | 25 | ||
26 | extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); | 26 | extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); |
27 | 27 | ||
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c index cff079e563f4..478097741bce 100644 --- a/arch/arm/mach-omap2/hsmmc.c +++ b/arch/arm/mach-omap2/hsmmc.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "hsmmc.h" | 26 | #include "hsmmc.h" |
27 | #include "control.h" | 27 | #include "control.h" |
28 | 28 | ||
29 | #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) | 29 | #if IS_ENABLED(CONFIG_MMC_OMAP_HS) |
30 | 30 | ||
31 | static u16 control_pbias_offset; | 31 | static u16 control_pbias_offset; |
32 | static u16 control_devconf1_offset; | 32 | static u16 control_devconf1_offset; |
diff --git a/arch/arm/mach-omap2/hsmmc.h b/arch/arm/mach-omap2/hsmmc.h index 148cd9b15499..69b619ddc765 100644 --- a/arch/arm/mach-omap2/hsmmc.h +++ b/arch/arm/mach-omap2/hsmmc.h | |||
@@ -28,7 +28,7 @@ struct omap2_hsmmc_info { | |||
28 | void (*init_card)(struct mmc_card *card); | 28 | void (*init_card)(struct mmc_card *card); |
29 | }; | 29 | }; |
30 | 30 | ||
31 | #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) | 31 | #if IS_ENABLED(CONFIG_MMC_OMAP_HS) |
32 | 32 | ||
33 | void omap_hsmmc_init(struct omap2_hsmmc_info *); | 33 | void omap_hsmmc_init(struct omap2_hsmmc_info *); |
34 | void omap_hsmmc_late_init(struct omap2_hsmmc_info *); | 34 | void omap_hsmmc_late_init(struct omap2_hsmmc_info *); |
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c index 292eca0e78ed..a72738eab009 100644 --- a/arch/arm/mach-omap2/twl-common.c +++ b/arch/arm/mach-omap2/twl-common.c | |||
@@ -532,8 +532,7 @@ void __init omap4_pmic_get_config(struct twl4030_platform_data *pmic_data, | |||
532 | } | 532 | } |
533 | #endif /* CONFIG_ARCH_OMAP4 */ | 533 | #endif /* CONFIG_ARCH_OMAP4 */ |
534 | 534 | ||
535 | #if defined(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) || \ | 535 | #if IS_ENABLED(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) |
536 | defined(CONFIG_SND_OMAP_SOC_OMAP_TWL4030_MODULE) | ||
537 | #include <linux/platform_data/omap-twl4030.h> | 536 | #include <linux/platform_data/omap-twl4030.h> |
538 | 537 | ||
539 | /* Commonly used configuration */ | 538 | /* Commonly used configuration */ |