diff options
Diffstat (limited to 'arch/mips/txx9/rbtx4939/setup.c')
-rw-r--r-- | arch/mips/txx9/rbtx4939/setup.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/setup.c index 2ad8973ba13d..e15641d93092 100644 --- a/arch/mips/txx9/rbtx4939/setup.c +++ b/arch/mips/txx9/rbtx4939/setup.c | |||
@@ -40,8 +40,7 @@ static void __init rbtx4939_time_init(void) | |||
40 | tx4939_time_init(0); | 40 | tx4939_time_init(0); |
41 | } | 41 | } |
42 | 42 | ||
43 | #if defined(__BIG_ENDIAN) && \ | 43 | #if defined(__BIG_ENDIAN) && IS_ENABLED(CONFIG_SMC91X) |
44 | (defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)) | ||
45 | #define HAVE_RBTX4939_IOSWAB | 44 | #define HAVE_RBTX4939_IOSWAB |
46 | #define IS_CE1_ADDR(addr) \ | 45 | #define IS_CE1_ADDR(addr) \ |
47 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) | 46 | ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1)) |
@@ -187,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void) | |||
187 | 186 | ||
188 | #define RBTX4939_MAX_7SEGLEDS 8 | 187 | #define RBTX4939_MAX_7SEGLEDS 8 |
189 | 188 | ||
190 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 189 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
191 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; | 190 | static u8 led_val[RBTX4939_MAX_7SEGLEDS]; |
192 | struct rbtx4939_led_data { | 191 | struct rbtx4939_led_data { |
193 | struct led_classdev cdev; | 192 | struct led_classdev cdev; |
@@ -263,7 +262,7 @@ static inline void rbtx4939_led_setup(void) | |||
263 | 262 | ||
264 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | 263 | static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val) |
265 | { | 264 | { |
266 | #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE) | 265 | #if IS_ENABLED(CONFIG_LEDS_CLASS) |
267 | unsigned long flags; | 266 | unsigned long flags; |
268 | local_irq_save(flags); | 267 | local_irq_save(flags); |
269 | /* bit7: reserved for LED class */ | 268 | /* bit7: reserved for LED class */ |
@@ -287,7 +286,7 @@ static void rbtx4939_7segled_putc(unsigned int pos, unsigned char val) | |||
287 | __rbtx4939_7segled_putc(pos, val); | 286 | __rbtx4939_7segled_putc(pos, val); |
288 | } | 287 | } |
289 | 288 | ||
290 | #if defined(CONFIG_MTD_RBTX4939) || defined(CONFIG_MTD_RBTX4939_MODULE) | 289 | #if IS_ENABLED(CONFIG_MTD_RBTX4939) |
291 | /* special mapping for boot rom */ | 290 | /* special mapping for boot rom */ |
292 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) | 291 | static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) |
293 | { | 292 | { |
@@ -463,7 +462,7 @@ static void __init rbtx4939_device_init(void) | |||
463 | .flags = SMC91X_USE_16BIT, | 462 | .flags = SMC91X_USE_16BIT, |
464 | }; | 463 | }; |
465 | struct platform_device *pdev; | 464 | struct platform_device *pdev; |
466 | #if defined(CONFIG_TC35815) || defined(CONFIG_TC35815_MODULE) | 465 | #if IS_ENABLED(CONFIG_TC35815) |
467 | int i, j; | 466 | int i, j; |
468 | unsigned char ethaddr[2][6]; | 467 | unsigned char ethaddr[2][6]; |
469 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; | 468 | u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; |