diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-08-30 22:51:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-30 22:51:36 -0700 |
| commit | b2230d13885996178628a73ae6cd98168cd9f8eb (patch) | |
| tree | 153894d7e01a72310ec234599453b6fa10da5d6b /drivers/input/joydev.c | |
| parent | fe178e800e8ac0f3f13f0ce4b2c170599669713b (diff) | |
[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.
Diffstat (limited to 'drivers/input/joydev.c')
| -rw-r--r-- | drivers/input/joydev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index 2f80d8222820..5a0bf404f758 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c @@ -170,7 +170,7 @@ static int joydev_release(struct inode * inode, struct file * file) static int joydev_open(struct inode *inode, struct file *file) { struct joydev_list *list; - int i = minor(inode->i_rdev) - JOYDEV_MINOR_BASE; + int i = iminor(inode) - JOYDEV_MINOR_BASE; if (i >= JOYDEV_MINORS || !joydev_table[i]) return -ENODEV; |
