mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make sure we are all set up before creating the LED instance.
This commit is contained in:
parent
1b7cfe4458
commit
a2e4145b35
1 changed files with 2 additions and 2 deletions
|
|
@ -189,10 +189,10 @@ sysctl_machdep_elan_gpio_config(SYSCTL_HANDLER_ARGS)
|
|||
if (led_dev[i])
|
||||
break;
|
||||
sprintf(tmp, "gpio%d", i);
|
||||
led_dev[i] =
|
||||
led_create(gpio_led, &led_cookie[i], tmp);
|
||||
mmcrptr[(0xc2a + v) / 2] |= u;
|
||||
gpio_config[i] = buf[i];
|
||||
led_dev[i] =
|
||||
led_create(gpio_led, &led_cookie[i], tmp);
|
||||
break;
|
||||
case '.':
|
||||
gpio_config[i] = buf[i];
|
||||
|
|
|
|||
Loading…
Reference in a new issue