[linux-dvb] [PATCH] check dev-core/dvbdev is initialised when an adapter or device is registered [Was: saa7134-dvb initialised before dvbdev]

Simon Arlott simon at arlott.org
Wed Jun 7 17:42:23 CEST 2006


On 07/06/06 13:45, Johannes Stezenbach wrote:
> On Wed, Jun 07, 2006 at 12:36:27AM +0100, Simon Arlott wrote:
>> The init function in dvbdev isn't called until after saa7134-dvb has
>> finished initialising, so devices can't be registered properly. No-one
>> else has replied about this yet and someone might the patch I made
>> useful so here it is.
> 
> I think a much simpler way to fix this would be to change
>   module_init(init_dvbdev);
> into
>   subsys_initcall(init_dvbdev);
> 
> Could you please test if that fixes it for you?
> 

Yes, it does:

[4294671.127000] dvb-core: init_dvbdev

[4294671.424000] saa7134[0]: pinnacle 300i dvb setup
[4294671.427000] dvb-core: dvb_register_adapter
[4294671.427000] DVB: registering new adapter (saa7134[0]).
[4294671.427000] DVB: registering frontend 0 (Zarlink MT352 DVB-T)...
[4294671.427000] dvb-core: dvb_register_device
[4294671.427000] dvb-core: dvb_register_device
[4294671.427000] dvb-core: dvb_register_device
[4294671.427000] dvb-core: dvb_register_device


> Thanks,
> Johannes
> 
> _______________________________________________
> linux-dvb mailing list
> linux-dvb at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


-- 
Simon Arlott

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 829 bytes
Desc: OpenPGP digital signature
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20060607/2162a8fc/signature.pgp


More information about the linux-dvb mailing list