diff options
Diffstat (limited to 'arch/cris/arch-v32/drivers/gpio.c')
-rw-r--r-- | arch/cris/arch-v32/drivers/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/drivers/gpio.c b/arch/cris/arch-v32/drivers/gpio.c index 00e9167de530..c3f876b4da6b 100644 --- a/arch/cris/arch-v32/drivers/gpio.c +++ b/arch/cris/arch-v32/drivers/gpio.c | |||
@@ -418,7 +418,7 @@ static int | |||
418 | gpio_open(struct inode *inode, struct file *filp) | 418 | gpio_open(struct inode *inode, struct file *filp) |
419 | { | 419 | { |
420 | struct gpio_private *priv; | 420 | struct gpio_private *priv; |
421 | int p = MINOR(inode->i_rdev); | 421 | int p = iminor(inode); |
422 | 422 | ||
423 | if (p > GPIO_MINOR_LAST) | 423 | if (p > GPIO_MINOR_LAST) |
424 | return -EINVAL; | 424 | return -EINVAL; |