Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+41 -52
+1 -1
arch/arm/mach-omap1/board-h2-mmc.c
··· 19 19 #include "board-h2.h" 20 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 24 static int mmc_set_power(struct device *dev, int slot, int power_on, 25 25 int vdd)
+1 -1
arch/arm/mach-omap1/board-h2.c
··· 349 349 #if IS_ENABLED(CONFIG_USB_OMAP) 350 350 .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ 351 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 353 /* needs OTG cable, or NONSTANDARD (B-to-MiniB) */ 354 354 .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ 355 355 #endif
+1 -1
arch/arm/mach-omap1/board-h3-mmc.c
··· 20 20 #include "board-h3.h" 21 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 25 static int mmc_set_power(struct device *dev, int slot, int power_on, 26 26 int vdd)
+1 -1
arch/arm/mach-omap1/board-h3.c
··· 368 368 369 369 #if IS_ENABLED(CONFIG_USB_OMAP) 370 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 372 /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ 373 373 .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ 374 374 #endif
+2 -2
arch/arm/mach-omap1/board-htcherald.c
··· 401 401 }; 402 402 403 403 /* MMC Card */ 404 - #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) 404 + #if IS_ENABLED(CONFIG_MMC_OMAP) 405 405 static struct omap_mmc_platform_data htc_mmc1_data = { 406 406 .nr_slots = 1, 407 407 .switch_slot = NULL, ··· 586 586 587 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 590 htc_mmc_data[0] = &htc_mmc1_data; 591 591 omap1_init_mmc(htc_mmc_data, 1); 592 592 #endif
+2 -2
arch/arm/mach-omap1/board-innovator.c
··· 315 315 #if IS_ENABLED(CONFIG_USB_OMAP) 316 316 .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ 317 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 319 /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ 320 320 .hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */ 321 321 #endif ··· 328 328 }; 329 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 333 static int mmc_set_power(struct device *dev, int slot, int power_on, 334 334 int vdd)
+2 -2
arch/arm/mach-omap1/board-nokia770.c
··· 159 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 164 #define NOKIA770_GPIO_MMC_POWER 41 165 165 #define NOKIA770_GPIO_MMC_SWITCH 23 ··· 216 216 } 217 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 220 static struct i2c_cbus_platform_data nokia770_cbus_data = { 221 221 .clk_gpio = OMAP_MPUIO(9), 222 222 .dat_gpio = OMAP_MPUIO(10),
+1 -1
arch/arm/mach-omap1/board-sx1-mmc.c
··· 20 20 21 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 25 static int mmc_set_power(struct device *dev, int slot, int power_on, 26 26 int vdd)
+5 -5
arch/arm/mach-omap1/devices.c
··· 33 33 #include "mmc.h" 34 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 38 #define OMAP_RTC_BASE 0xfffb4800 39 39 ··· 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 77 static inline void omap1_mmc_mux(struct omap_mmc_platform_data *mmc_controller, 78 78 int controller_nr) ··· 230 230 /*-------------------------------------------------------------------------*/ 231 231 232 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 235 struct platform_device omap_spi1 = { 236 236 .name = "omap1_spi100k", ··· 312 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 317 #define OMAP_UWIRE_BASE 0xfffb3000 318 318 ··· 418 418 } 419 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 423 static struct resource wdt_resources[] = { 424 424 {
+1 -1
arch/arm/mach-omap1/fb.c
··· 33 33 34 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 38 static bool omapfb_lcd_configured; 39 39 static struct omapfb_platform_data omapfb_config;
+1 -1
arch/arm/mach-omap1/include/mach/usb.h
··· 12 12 13 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 16 void omap1_usb_init(struct omap_usb_config *pdata); 17 17 #else 18 18 static inline void omap1_usb_init(struct omap_usb_config *pdata)
+1 -1
arch/arm/mach-omap1/mmc.h
··· 7 7 #define OMAP1_MMC1_BASE 0xfffb7800 8 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 11 void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data, 12 12 int nr_controllers); 13 13 #else
+3 -3
arch/arm/mach-omap1/usb.c
··· 136 136 } 137 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 140 if (config->otg || config->register_host) { 141 141 struct platform_device *ohci_device = config->ohci_device; 142 142 int status; ··· 221 221 222 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 226 /* The dmamask must be set for OHCI to work */ 227 227 static u64 ohci_dmamask = ~(u32)0; ··· 612 612 } 613 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 616 if (config->register_host) { 617 617 int status; 618 618
+4 -6
arch/arm/mach-omap2/board-flash.c
··· 81 81 pr_err("Unable to register NOR device\n"); 82 82 } 83 83 84 - #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ 85 - defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) 84 + #if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) 86 85 static struct omap_onenand_platform_data board_onenand_data = { 87 86 .dma_channel = -1, /* disable DMA in OMAP OneNAND driver */ 88 87 }; ··· 96 97 97 98 gpmc_onenand_init(&board_onenand_data); 98 99 } 99 - #endif /* CONFIG_MTD_ONENAND_OMAP2 || CONFIG_MTD_ONENAND_OMAP2_MODULE */ 100 + #endif /* IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) */ 100 101 101 - #if defined(CONFIG_MTD_NAND_OMAP2) || \ 102 - defined(CONFIG_MTD_NAND_OMAP2_MODULE) 102 + #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) 103 103 104 104 /* Note that all values in this struct are in nanoseconds */ 105 105 struct gpmc_timings nand_default_timings[1] = { ··· 142 144 board_nand_data.ecc_opt = OMAP_ECC_HAM1_CODE_SW; 143 145 gpmc_nand_init(&board_nand_data, gpmc_t); 144 146 } 145 - #endif /* CONFIG_MTD_NAND_OMAP2 || CONFIG_MTD_NAND_OMAP2_MODULE */ 147 + #endif /* IS_ENABLED(CONFIG_MTD_NAND_OMAP2) */ 146 148 147 149 /** 148 150 * get_gpmc0_type - Reads the FPGA DIP_SWITCH_INPUT_REGISTER2 to get
+3 -8
arch/arm/mach-omap2/board-flash.h
··· 23 23 int nr_parts; 24 24 }; 25 25 26 - #if defined(CONFIG_MTD_NAND_OMAP2) || \ 27 - defined(CONFIG_MTD_NAND_OMAP2_MODULE) || \ 28 - defined(CONFIG_MTD_ONENAND_OMAP2) || \ 29 - defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) 26 + #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) || IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) 30 27 extern void board_flash_init(struct flash_partitions [], 31 28 char chip_sel[][GPMC_CS_NUM], int nand_type); 32 29 #else ··· 33 36 } 34 37 #endif 35 38 36 - #if defined(CONFIG_MTD_NAND_OMAP2) || \ 37 - defined(CONFIG_MTD_NAND_OMAP2_MODULE) 39 + #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) 38 40 extern void board_nand_init(struct mtd_partition *nand_parts, 39 41 u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t); 40 42 extern struct gpmc_timings nand_default_timings[]; ··· 45 49 #define nand_default_timings NULL 46 50 #endif 47 51 48 - #if defined(CONFIG_MTD_ONENAND_OMAP2) || \ 49 - defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) 52 + #if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2) 50 53 extern void board_onenand_init(struct mtd_partition *nand_parts, 51 54 u8 nr_parts, u8 cs); 52 55 #else
+2 -3
arch/arm/mach-omap2/board-n8x0.c
··· 66 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 71 * Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and 72 72 * 1.5 V voltage regulators of PM companion chip. Companion chip will then ··· 163 163 }, 164 164 }; 165 165 166 - #if defined(CONFIG_MENELAUS) && \ 167 - (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) 166 + #if defined(CONFIG_MENELAUS) && IS_ENABLED(CONFIG_MMC_OMAP) 168 167 169 168 /* 170 169 * On both N800 and N810, only the first of the two MMC controllers is in use.
+1 -2
arch/arm/mach-omap2/common-board-devices.c
··· 29 29 #include "common.h" 30 30 #include "common-board-devices.h" 31 31 32 - #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ 33 - defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) 32 + #if IS_ENABLED(CONFIG_TOUCHSCREEN_ADS7846) 34 33 static struct omap2_mcspi_device_config ads7846_mcspi_config = { 35 34 .turbo_mode = 0, 36 35 };
+3 -4
arch/arm/mach-omap2/devices.c
··· 67 67 68 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 72 #include <linux/platform_data/spi-omap2-mcspi.h> 73 73 ··· 163 163 164 164 /*-------------------------------------------------------------------------*/ 165 165 166 - #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \ 167 - defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE) 168 - #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) 166 + #if IS_ENABLED(CONFIG_VIDEO_OMAP2_VOUT) 167 + #if IS_ENABLED(CONFIG_FB_OMAP2) 169 168 static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = { 170 169 }; 171 170 #else
+1 -1
arch/arm/mach-omap2/drm.c
··· 28 28 #include "soc.h" 29 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 33 static struct omap_drm_platform_data platform_data; 34 34
+1 -1
arch/arm/mach-omap2/fb.c
··· 90 90 int __init omap_init_vrfb(void) { return 0; } 91 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 95 static u64 omap_fb_dma_mask = ~(u32)0; 96 96 static struct omapfb_platform_data omapfb_config;
+1 -1
arch/arm/mach-omap2/gpmc-smsc911x.h
··· 21 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 26 extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); 27 27
+1 -1
arch/arm/mach-omap2/hsmmc.c
··· 26 26 #include "hsmmc.h" 27 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 31 static u16 control_pbias_offset; 32 32 static u16 control_devconf1_offset;
+1 -1
arch/arm/mach-omap2/hsmmc.h
··· 28 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 33 void omap_hsmmc_init(struct omap2_hsmmc_info *); 34 34 void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
+1 -2
arch/arm/mach-omap2/twl-common.c
··· 532 532 } 533 533 #endif /* CONFIG_ARCH_OMAP4 */ 534 534 535 - #if defined(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) || \ 536 - defined(CONFIG_SND_OMAP_SOC_OMAP_TWL4030_MODULE) 535 + #if IS_ENABLED(CONFIG_SND_OMAP_SOC_OMAP_TWL4030) 537 536 #include <linux/platform_data/omap-twl4030.h> 538 537 539 538 /* Commonly used configuration */