]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit4abdcf933f647763592db6bef001d1fae61a5527
treee5dc6075802215d51f2c1703d474948471bd19dd
parenta6d7613226c4e159b12fbaad707ddadf47b38ccf
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