Re: [PATCH 2/5] leds: make sure leds_class is initialized before triggers are registered

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:09PM +0900, Akinobu Mita wrote: > If the led-class and usb-common modules are built into the kernel, the > usb-common module could be initialized earlier than the led-class module. > > So when the ledtrig_usb_gadget and ledtrig_usb_host LED triggers are > registered

[PATCH 2/5] leds: make sure leds_class is initialized before triggers are registered

2019-09-08 Thread Akinobu Mita
If the led-class and usb-common modules are built into the kernel, the usb-common module could be initialized earlier than the led-class module. So when the ledtrig_usb_gadget and ledtrig_usb_host LED triggers are registered by usb-common module, the leds_class could not be initialized yet. We