From b2230d13885996178628a73ae6cd98168cd9f8eb Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sat, 30 Aug 2003 22:51:36 -0700 Subject: [PATCH] dev_t handling cleanups (10/12) new helper - iminor(inode); defined as minor(inode->i_rdev); lots and lots of places in drivers had been switched to it. --- drivers/char/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/char/mem.c') diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 7f1464f3e6b8..82b44f1c1a13 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -607,7 +607,7 @@ static struct file_operations kmsg_fops = { static int memory_open(struct inode * inode, struct file * filp) { - switch (minor(inode->i_rdev)) { + switch (iminor(inode)) { case 1: filp->f_op = &mem_fops; break; -- cgit v1.2.3