summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core/dvbdev.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-03-31 18:27:41 +0000
committerMichael Hunold <devnull@localhost>2003-03-31 18:27:41 +0000
commita4aaa6eb6e4112a86f5d31488e7ed1320f3028be (patch)
tree90752f4aec4a4456e5d5d973e2a7ae1a8d49b6c1 /linux/drivers/media/dvb/dvb-core/dvbdev.c
parent0f4d6feb223ed89f77639daded9bc1dd256c5fbf (diff)
downloadmediapointer-dvb-s2-a4aaa6eb6e4112a86f5d31488e7ed1320f3028be.tar.gz
mediapointer-dvb-s2-a4aaa6eb6e4112a86f5d31488e7ed1320f3028be.tar.bz2
Small fixes to make the driver compile with 2.5.66
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core/dvbdev.c')
-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);