aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-08-11 15:29:45 -0400
committerTony Lindgren <tony@atomide.com>2016-08-26 11:42:35 -0400
commit502ad2a669f146e0801973c42e55478322f2d382 (patch)
tree76716a5a0ea829f5342ec947004d7476fa15076c
parentfcebddb9d824dd0242af110fd87e8b8ba70a055c (diff)
ARM: OMAP2+: use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Using the macro makes the code more readable by helping abstract away some of the Kconfig built-in and module enable details. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/board-flash.c10
-rw-r--r--arch/arm/mach-omap2/board-flash.h11
-rw-r--r--arch/arm/mach-omap2/board-n8x0.c5
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c23
-rw-r--r--arch/arm/mach-omap2/board-rx51-video.c4
-rw-r--r--arch/arm/mach-omap2/common-board-devices.c3
-rw-r--r--arch/arm/mach-omap2/devices.c7
-rw-r--r--arch/arm/mach-omap2/drm.c2
-rw-r--r--arch/arm/mach-omap2/fb.c2
-rw-r--r--arch/arm/mach-omap2/gpmc-smsc911x.h2
-rw-r--r--arch/arm/mach-omap2/hsmmc.c2
-rw-r--r--arch/arm/mach-omap2/hsmmc.h2
-rw-r--r--arch/arm/mach-omap2/twl-common.c3
13 files changed, 32 insertions, 44 deletions
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)
86static struct omap_onenand_platform_data board_onenand_data = { 85static 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 */
106struct gpmc_timings nand_default_timings[1] = { 104struct 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)
30extern void board_flash_init(struct flash_partitions [], 27extern 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)
41extern void board_nand_init(struct mtd_partition *nand_parts, 37extern 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);
43extern struct gpmc_timings nand_default_timings[]; 39extern 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)
54extern void board_onenand_init(struct mtd_partition *nand_parts, 49extern 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/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index a5ab712c1a59..631a5a4005fc 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -86,7 +86,7 @@ enum {
86static struct wl1251_platform_data wl1251_pdata; 86static struct wl1251_platform_data wl1251_pdata;
87static struct tsc2005_platform_data tsc2005_pdata; 87static struct tsc2005_platform_data tsc2005_pdata;
88 88
89#if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) 89#if IS_ENABLED(CONFIG_SENSORS_LIS3_I2C)
90static int lis302_setup(void) 90static int lis302_setup(void)
91{ 91{
92 int err; 92 int err;
@@ -156,13 +156,13 @@ static struct lis3lv02d_platform_data rx51_lis3lv02d_data = {
156}; 156};
157#endif 157#endif
158 158
159#if defined(CONFIG_SENSORS_TSL2563) || defined(CONFIG_SENSORS_TSL2563_MODULE) 159#if IS_ENABLED(CONFIG_SENSORS_TSL2563)
160static struct tsl2563_platform_data rx51_tsl2563_platform_data = { 160static struct tsl2563_platform_data rx51_tsl2563_platform_data = {
161 .cover_comp_gain = 16, 161 .cover_comp_gain = 16,
162}; 162};
163#endif 163#endif
164 164
165#if defined(CONFIG_LEDS_LP5523) || defined(CONFIG_LEDS_LP5523_MODULE) 165#if IS_ENABLED(CONFIG_LEDS_LP5523)
166static struct lp55xx_led_config rx51_lp5523_led_config[] = { 166static struct lp55xx_led_config rx51_lp5523_led_config[] = {
167 { 167 {
168 .name = "lp5523:kb1", 168 .name = "lp5523:kb1",
@@ -299,7 +299,7 @@ static void __init rx51_charger_init(void)
299 platform_device_register(&rx51_charger_device); 299 platform_device_register(&rx51_charger_device);
300} 300}
301 301
302#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 302#if IS_ENABLED(CONFIG_KEYBOARD_GPIO)
303 303
304#define RX51_GPIO_CAMERA_LENS_COVER 110 304#define RX51_GPIO_CAMERA_LENS_COVER 110
305#define RX51_GPIO_CAMERA_FOCUS 68 305#define RX51_GPIO_CAMERA_FOCUS 68
@@ -377,7 +377,7 @@ static void __init rx51_add_gpio_keys(void)
377static void __init rx51_add_gpio_keys(void) 377static void __init rx51_add_gpio_keys(void)
378{ 378{
379} 379}
380#endif /* CONFIG_KEYBOARD_GPIO || CONFIG_KEYBOARD_GPIO_MODULE */ 380#endif /* IS_ENABLED(CONFIG_KEYBOARD_GPIO) */
381 381
382static uint32_t board_keymap[] = { 382static uint32_t board_keymap[] = {
383 /* 383 /*
@@ -1018,13 +1018,13 @@ static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = {
1018 I2C_BOARD_INFO("tlv320aic3x", 0x19), 1018 I2C_BOARD_INFO("tlv320aic3x", 0x19),
1019 .platform_data = &rx51_aic3x_data2, 1019 .platform_data = &rx51_aic3x_data2,
1020 }, 1020 },
1021#if defined(CONFIG_SENSORS_TSL2563) || defined(CONFIG_SENSORS_TSL2563_MODULE) 1021#if IS_ENABLED(CONFIG_SENSORS_TSL2563)
1022 { 1022 {
1023 I2C_BOARD_INFO("tsl2563", 0x29), 1023 I2C_BOARD_INFO("tsl2563", 0x29),
1024 .platform_data = &rx51_tsl2563_platform_data, 1024 .platform_data = &rx51_tsl2563_platform_data,
1025 }, 1025 },
1026#endif 1026#endif
1027#if defined(CONFIG_LEDS_LP5523) || defined(CONFIG_LEDS_LP5523_MODULE) 1027#if IS_ENABLED(CONFIG_LEDS_LP5523)
1028 { 1028 {
1029 I2C_BOARD_INFO("lp5523", 0x32), 1029 I2C_BOARD_INFO("lp5523", 0x32),
1030 .platform_data = &rx51_lp5523_platform_data, 1030 .platform_data = &rx51_lp5523_platform_data,
@@ -1040,7 +1040,7 @@ static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = {
1040}; 1040};
1041 1041
1042static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_3[] = { 1042static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_3[] = {
1043#if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) 1043#if IS_ENABLED(CONFIG_SENSORS_LIS3_I2C)
1044 { 1044 {
1045 I2C_BOARD_INFO("lis3lv02d", 0x1d), 1045 I2C_BOARD_INFO("lis3lv02d", 0x1d),
1046 .platform_data = &rx51_lis3lv02d_data, 1046 .platform_data = &rx51_lis3lv02d_data,
@@ -1081,7 +1081,7 @@ static int __init rx51_i2c_init(void)
1081#endif 1081#endif
1082 omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, 1082 omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2,
1083 ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); 1083 ARRAY_SIZE(rx51_peripherals_i2c_board_info_2));
1084#if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) 1084#if IS_ENABLED(CONFIG_SENSORS_LIS3_I2C)
1085 rx51_lis3lv02d_data.irq2 = gpio_to_irq(LIS302_IRQ2_GPIO); 1085 rx51_lis3lv02d_data.irq2 = gpio_to_irq(LIS302_IRQ2_GPIO);
1086 rx51_peripherals_i2c_board_info_3[0].irq = gpio_to_irq(LIS302_IRQ1_GPIO); 1086 rx51_peripherals_i2c_board_info_3[0].irq = gpio_to_irq(LIS302_IRQ1_GPIO);
1087#endif 1087#endif
@@ -1090,8 +1090,7 @@ static int __init rx51_i2c_init(void)
1090 return 0; 1090 return 0;
1091} 1091}
1092 1092
1093#if defined(CONFIG_MTD_ONENAND_OMAP2) || \ 1093#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
1094 defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
1095 1094
1096static struct mtd_partition onenand_partitions[] = { 1095static struct mtd_partition onenand_partitions[] = {
1097 { 1096 {
@@ -1239,7 +1238,7 @@ static struct pwm_omap_dmtimer_pdata __maybe_unused pwm_dmtimer_pdata = {
1239}; 1238};
1240#endif 1239#endif
1241 1240
1242#if defined(CONFIG_IR_RX51) || defined(CONFIG_IR_RX51_MODULE) 1241#if IS_ENABLED(CONFIG_IR_RX51)
1243static struct lirc_rx51_platform_data rx51_lirc_data = { 1242static struct lirc_rx51_platform_data rx51_lirc_data = {
1244 .set_max_mpu_wakeup_lat = omap_pm_set_max_mpu_wakeup_lat, 1243 .set_max_mpu_wakeup_lat = omap_pm_set_max_mpu_wakeup_lat,
1245}; 1244};
diff --git a/arch/arm/mach-omap2/board-rx51-video.c b/arch/arm/mach-omap2/board-rx51-video.c
index 180c6aa633bd..ef5cbb6f4c47 100644
--- a/arch/arm/mach-omap2/board-rx51-video.c
+++ b/arch/arm/mach-omap2/board-rx51-video.c
@@ -28,7 +28,7 @@
28 28
29#define RX51_LCD_RESET_GPIO 90 29#define RX51_LCD_RESET_GPIO 90
30 30
31#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) 31#if IS_ENABLED(CONFIG_FB_OMAP2)
32 32
33static struct connector_atv_platform_data rx51_tv_pdata = { 33static struct connector_atv_platform_data rx51_tv_pdata = {
34 .name = "tv", 34 .name = "tv",
@@ -64,4 +64,4 @@ static int __init rx51_video_init(void)
64} 64}
65 65
66omap_subsys_initcall(rx51_video_init); 66omap_subsys_initcall(rx51_video_init);
67#endif /* defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) */ 67#endif /* IS_ENABLED(CONFIG_FB_OMAP2) */
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)
34static struct omap2_mcspi_device_config ads7846_mcspi_config = { 33static 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
68static inline void omap_init_sti(void) {} 68static 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)
169static struct resource omap_vout_resource[3 - CONFIG_FB_OMAP2_NUM_FBS] = { 168static 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
33static struct omap_drm_platform_data platform_data; 33static 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)
90int __init omap_init_vrfb(void) { return 0; } 90int __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
95static u64 omap_fb_dma_mask = ~(u32)0; 95static u64 omap_fb_dma_mask = ~(u32)0;
96static struct omapfb_platform_data omapfb_config; 96static 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
26extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); 26extern 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
31static u16 control_pbias_offset; 31static u16 control_pbias_offset;
32static u16 control_devconf1_offset; 32static 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
33void omap_hsmmc_init(struct omap2_hsmmc_info *); 33void omap_hsmmc_init(struct omap2_hsmmc_info *);
34void omap_hsmmc_late_init(struct omap2_hsmmc_info *); 34void 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 */