Re: [PATCH] leds: netxbig: fix module autoload for OF registration

2016-11-29 Thread Javier Martinez Canillas
Hello Jacek, On 11/29/2016 12:34 PM, Jacek Anaszewski wrote: > Hi Javier, > > On 11/29/2016 04:00 PM, Javier Martinez Canillas wrote: >> Hello Jacek, >> >> On 10/21/2016 12:52 PM, Javier Martinez Canillas wrote: >>> If the driver is built as a module, autoload won't work because the module >>> al

Re: [PATCH] leds: netxbig: fix module autoload for OF registration

2016-11-29 Thread Jacek Anaszewski
Hi Javier, On 11/29/2016 04:00 PM, Javier Martinez Canillas wrote: Hello Jacek, On 10/21/2016 12:52 PM, Javier Martinez Canillas wrote: If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device wi

Re: [PATCH] leds: netxbig: fix module autoload for OF registration

2016-11-29 Thread Javier Martinez Canillas
Hello Jacek, On 10/21/2016 12:52 PM, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias informa

[PATCH] leds: netxbig: fix module autoload for OF registration

2016-10-21 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive