Re: [linux-dvb] [PATCH] dvb-core: Handle failures to create devices

2007-05-06 Thread Simon Arlott
On 06/05/07 23:50, Trent Piepho wrote: I've tested this and can confirm it works. dvb_class will be set too late without the change to subsys_initcall. On Tue, 1 May 2007, Simon Arlott wrote: dvb-core is not started early enough when device drivers that use dvb are compiled in so device_regist

Re: [linux-dvb] [PATCH] dvb-core: Handle failures to create devices

2007-05-06 Thread Trent Piepho
I've tested this and can confirm it works. dvb_class will be set too late without the change to subsys_initcall. On Tue, 1 May 2007, Simon Arlott wrote: > dvb-core is not started early enough when device drivers that use dvb are > compiled in so device_register_device fails (silently) since dvb_c

Re: [linux-dvb] [PATCH] dvb-core: Handle failures to create devices

2007-05-01 Thread Simon Arlott
dvb-core is not started early enough when device drivers that use dvb are compiled in so device_register_device fails (silently) since dvb_class is NULL, this runs dvb_init using subsys_initcall instead of module_init. dvb_register_device will now check the return value of class_device_create.

Re: [linux-dvb] [PATCH] dvb-core: Handle failures to create devices

2007-05-01 Thread Trent Piepho
On Tue, 1 May 2007, Simon Arlott wrote: > dvb-core is not started early enough when device drivers that use dvb are > compiled in so device_register_device fails (silently) since dvb_class is > NULL, this runs dvb_init using subsys_initclass instead of module_init. > > dvb_register_device will now