summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-fileops.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-05-02 09:47:16 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-02 09:47:16 -0300
commitd4618eb817e012165cb72169eb3649e9c9ea7eb8 (patch)
treec7d00d23ab343daf73298ac4e5b7cf54342c2fec /linux/drivers/media/video/ivtv/ivtv-fileops.c
parent83e5240fde7d7978e91ab7f3e555aff235bda5ff (diff)
downloadmediapointer-dvb-s2-d4618eb817e012165cb72169eb3649e9c9ea7eb8.tar.gz
mediapointer-dvb-s2-d4618eb817e012165cb72169eb3649e9c9ea7eb8.tar.bz2
VIDEO4LINUX-2: Replace MINOR() with a call to iminor().
From: Robert P. J. Day <rpjday@mindspring.com> Replace the call to MINOR() with a call to the inline iminor() routine. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-fileops.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-fileops.c b/linux/drivers/media/video/ivtv/ivtv-fileops.c
index 1637097dd..8976487a6 100644
--- a/linux/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/linux/drivers/media/video/ivtv/ivtv-fileops.c
@@ -804,7 +804,7 @@ int ivtv_v4l2_open(struct inode *inode, struct file *filp)
struct ivtv_open_id *item;
struct ivtv *itv = NULL;
struct ivtv_stream *s = NULL;
- int minor = MINOR(inode->i_rdev);
+ int minor = iminor(inode);
/* Find which card this open was on */
spin_lock(&ivtv_cards_lock);