summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-10-14 09:53:12 +0000
committerMichael Hunold <devnull@localhost>2003-10-14 09:53:12 +0000
commitec6beccf0b090e484de9b056da423de36d12a785 (patch)
tree7bec8486c57f6267278be42264e73e43bde8150b /linux/drivers
parent8197da3237749d7313a54a5db5811dc31c65f530 (diff)
downloadmediapointer-dvb-s2-ec6beccf0b090e484de9b056da423de36d12a785.tar.gz
mediapointer-dvb-s2-ec6beccf0b090e484de9b056da423de36d12a785.tar.bz2
Pass thorugh return value of register_chrdev()
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index b7978047f..cf5850799 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -348,18 +348,18 @@ int dvb_unregister_adapter(struct dvb_adapter *adap)
static int __init init_dvbdev(void)
{
+ int retval;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
dvb_devfs_handle = devfs_mk_dir (NULL, "dvb", NULL);
#else
devfs_mk_dir("dvb");
#endif
#ifndef CONFIG_DVB_DEVFS_ONLY
- if(register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops)) {
+ retval register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops);
+ if(0 != retval) {
printk("video_dev: unable to get major %d\n", DVB_MAJOR);
- return -EIO;
- }
#endif
- return 0;
+ return retval;
}