Commit ec30d80b authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: dvb: return register_chrdev value

From: Daniele Bellucci <bellucda@tiscali.it>
parent e4cd9b64
...@@ -299,14 +299,14 @@ int dvb_unregister_adapter(struct dvb_adapter *adap) ...@@ -299,14 +299,14 @@ int dvb_unregister_adapter(struct dvb_adapter *adap)
static int __init init_dvbdev(void) static int __init init_dvbdev(void)
{ {
int retval;
devfs_mk_dir("dvb"); devfs_mk_dir("dvb");
if(register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops)) { retval = register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops);
if (retval)
printk("video_dev: unable to get major %d\n", DVB_MAJOR); printk("video_dev: unable to get major %d\n", DVB_MAJOR);
return -EIO;
}
return 0; return retval;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment