diff options
author | Michael Hunold <devnull@localhost> | 2003-09-10 11:10:50 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-09-10 11:10:50 +0000 |
commit | 311f3003c92e319aa96af769bf50d2d90a0b8710 (patch) | |
tree | 5096918a3b9eea66e928f90a8571d8b08de56d50 /linux | |
parent | 04a62017bc61cc65ab5f408a69b4f5a6edece8d0 (diff) | |
download | mediapointer-dvb-s2-311f3003c92e319aa96af769bf50d2d90a0b8710.tar.gz mediapointer-dvb-s2-311f3003c92e319aa96af769bf50d2d90a0b8710.tar.bz2 |
Use iminor() instead of minor(), add a macro to provide 2.4
backward compatibility.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_compat.h | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvbdev.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_compat.h b/linux/drivers/media/dvb/dvb-core/dvb_compat.h index 50e451a7c..b6c1c7bc8 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_compat.h +++ b/linux/drivers/media/dvb/dvb-core/dvb_compat.h @@ -8,6 +8,8 @@ #include <linux/fs.h> #include <linux/devfs_fs_kernel.h> +#define iminor(xx) minor(xx->i_rdev) + #define irqreturn_t void #define IRQ_NONE #define IRQ_HANDLED diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c index 7f3421778..b7978047f 100644 --- a/linux/drivers/media/dvb/dvb-core/dvbdev.c +++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c @@ -80,7 +80,7 @@ static int dvb_device_open(struct inode *inode, struct file *file) { struct dvb_device *dvbdev; - dvbdev = dvbdev_find_device (minor(inode->i_rdev)); + dvbdev = dvbdev_find_device (iminor(inode)); if (dvbdev && dvbdev->fops) { int err = 0; |