| .. | .. |
|---|
| 56 | 56 | static int led_type __read_mostly = -1; |
|---|
| 57 | 57 | static unsigned char lastleds; /* LED state from most recent update */ |
|---|
| 58 | 58 | static unsigned int led_heartbeat __read_mostly = 1; |
|---|
| 59 | | -static unsigned int led_diskio __read_mostly = 1; |
|---|
| 60 | | -static unsigned int led_lanrxtx __read_mostly = 1; |
|---|
| 59 | +static unsigned int led_diskio __read_mostly; |
|---|
| 60 | +static unsigned int led_lanrxtx __read_mostly; |
|---|
| 61 | 61 | static char lcd_text[32] __read_mostly; |
|---|
| 62 | 62 | static char lcd_text_default[32] __read_mostly; |
|---|
| 63 | 63 | static int lcd_no_led_support __read_mostly = 0; /* KittyHawk doesn't support LED on its LCD */ |
|---|
| .. | .. |
|---|
| 137 | 137 | |
|---|
| 138 | 138 | /* Create the work queue and queue the LED task */ |
|---|
| 139 | 139 | led_wq = create_singlethread_workqueue("led_wq"); |
|---|
| 140 | + if (!led_wq) |
|---|
| 141 | + return -ENOMEM; |
|---|
| 142 | + |
|---|
| 140 | 143 | queue_delayed_work(led_wq, &led_task, 0); |
|---|
| 141 | 144 | |
|---|
| 142 | 145 | return 0; |
|---|