summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index e625b595d..235235aa6 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -299,7 +299,11 @@ int dvb_register_adapter(struct dvb_adapter **padap, const char *name)
printk ("DVB: registering new adapter (%s).\n", name);
snprintf(dirname, sizeof(dirname), "adapter%d", num);
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,66))
adap->devfs_handle = devfs_mk_dir(dvb_devfs_handle, dirname, NULL);
+#else
+ adap->devfs_handle = devfs_mk_dir(dirname);
+#endif
adap->num = num;
adap->name = name;
@@ -328,7 +332,11 @@ int dvb_unregister_adapter(struct dvb_adapter *adap)
static
int __init init_dvbdev(void)
{
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,66))
dvb_devfs_handle = devfs_mk_dir (NULL, "dvb", NULL);
+#else
+ dvb_devfs_handle = devfs_mk_dir ("dvb");
+#endif
#ifndef CONFIG_DVB_DEVFS_ONLY
if(register_chrdev(DVB_MAJOR,"DVB", &dvb_device_fops)) {
printk("video_dev: unable to get major %d\n", DVB_MAJOR);