|
@@ -186,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void)
|
|
|
|
|
|
#define RBTX4939_MAX_7SEGLEDS 8
|
|
|
|
|
|
-#if IS_ENABLED(CONFIG_LEDS_CLASS)
|
|
|
+#if IS_BUILTIN(CONFIG_LEDS_CLASS)
|
|
|
static u8 led_val[RBTX4939_MAX_7SEGLEDS];
|
|
|
struct rbtx4939_led_data {
|
|
|
struct led_classdev cdev;
|
|
@@ -261,7 +261,7 @@ static inline void rbtx4939_led_setup(void)
|
|
|
|
|
|
static void __rbtx4939_7segled_putc(unsigned int pos, unsigned char val)
|
|
|
{
|
|
|
-#if IS_ENABLED(CONFIG_LEDS_CLASS)
|
|
|
+#if IS_BUILTIN(CONFIG_LEDS_CLASS)
|
|
|
unsigned long flags;
|
|
|
local_irq_save(flags);
|
|
|
/* bit7: reserved for LED class */
|