]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5630): Dvb-core: Handle failures to create devices
authorSimon Arlott <simon@fire.lp0.eu>
Sun, 6 May 2007 23:56:14 +0000 (20:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 22 May 2007 19:00:14 +0000 (16:00 -0300)
commitbdc75dfa870ae4b6de21ed1de9bf740f715487a6
treee5dc6075802215d51f2c1703d474948471bd19dd
parent63c67d478b20b69f0c8abc2061cf811b43d7540b
V4L/DVB (5630): Dvb-core: Handle failures to create devices

dvb-core is not started early enough when device drivers that use dvb are
compiled in so dvb_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.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvbdev.c