From 311f3003c92e319aa96af769bf50d2d90a0b8710 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Wed, 10 Sep 2003 11:10:50 +0000 Subject: Use iminor() instead of minor(), add a macro to provide 2.4 backward compatibility. --- linux/drivers/media/dvb/dvb-core/dvb_compat.h | 2 ++ linux/drivers/media/dvb/dvb-core/dvbdev.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/dvb-core') 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 #include +#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; -- cgit v1.2.3