diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-07-10 07:45:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 16:24:22 -0400 |
commit | 32ea086b7b6423e8ab1874389741bcef4d50f938 (patch) | |
tree | f506440c23d41b6c65d5b131b399f75465dab42f /arch/cris/arch-v32 | |
parent | aeceb15738958fe59cd9fe537f40317b1a3bc731 (diff) |
[PATCH] cris: switch to iminor/imajor
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r-- | arch/cris/arch-v32/drivers/cryptocop.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/gpio.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/sync_serial.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/arch/cris/arch-v32/drivers/cryptocop.c b/arch/cris/arch-v32/drivers/cryptocop.c index c59ee28a35f4..ba096ebb0b15 100644 --- a/arch/cris/arch-v32/drivers/cryptocop.c +++ b/arch/cris/arch-v32/drivers/cryptocop.c | |||
@@ -2302,7 +2302,7 @@ static int cryptocop_job_setup(struct cryptocop_prio_job **pj, struct cryptocop_ | |||
2302 | 2302 | ||
2303 | static int cryptocop_open(struct inode *inode, struct file *filp) | 2303 | static int cryptocop_open(struct inode *inode, struct file *filp) |
2304 | { | 2304 | { |
2305 | int p = MINOR(inode->i_rdev); | 2305 | int p = iminor(inode); |
2306 | 2306 | ||
2307 | if (p != CRYPTOCOP_MINOR) return -EINVAL; | 2307 | if (p != CRYPTOCOP_MINOR) return -EINVAL; |
2308 | 2308 | ||
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; |
diff --git a/arch/cris/arch-v32/drivers/sync_serial.c b/arch/cris/arch-v32/drivers/sync_serial.c index 7c29957f5f02..e067806b2208 100644 --- a/arch/cris/arch-v32/drivers/sync_serial.c +++ b/arch/cris/arch-v32/drivers/sync_serial.c | |||
@@ -340,7 +340,7 @@ static inline int sync_data_avail_to_end(struct sync_port *port) | |||
340 | 340 | ||
341 | static int sync_serial_open(struct inode *inode, struct file *file) | 341 | static int sync_serial_open(struct inode *inode, struct file *file) |
342 | { | 342 | { |
343 | int dev = MINOR(inode->i_rdev); | 343 | int dev = iminor(inode); |
344 | sync_port* port; | 344 | sync_port* port; |
345 | reg_dma_rw_cfg cfg = {.en = regk_dma_yes}; | 345 | reg_dma_rw_cfg cfg = {.en = regk_dma_yes}; |
346 | reg_dma_rw_intr_mask intr_mask = {.data = regk_dma_yes}; | 346 | reg_dma_rw_intr_mask intr_mask = {.data = regk_dma_yes}; |
@@ -486,7 +486,7 @@ static int sync_serial_open(struct inode *inode, struct file *file) | |||
486 | 486 | ||
487 | static int sync_serial_release(struct inode *inode, struct file *file) | 487 | static int sync_serial_release(struct inode *inode, struct file *file) |
488 | { | 488 | { |
489 | int dev = MINOR(inode->i_rdev); | 489 | int dev = iminor(inode); |
490 | sync_port* port; | 490 | sync_port* port; |
491 | 491 | ||
492 | if (dev < 0 || dev >= NUMBER_OF_PORTS || !ports[dev].enabled) | 492 | if (dev < 0 || dev >= NUMBER_OF_PORTS || !ports[dev].enabled) |
@@ -504,7 +504,7 @@ static int sync_serial_release(struct inode *inode, struct file *file) | |||
504 | 504 | ||
505 | static unsigned int sync_serial_poll(struct file *file, poll_table *wait) | 505 | static unsigned int sync_serial_poll(struct file *file, poll_table *wait) |
506 | { | 506 | { |
507 | int dev = MINOR(file->f_dentry->d_inode->i_rdev); | 507 | int dev = iminor(file->f_dentry->d_inode); |
508 | unsigned int mask = 0; | 508 | unsigned int mask = 0; |
509 | sync_port* port; | 509 | sync_port* port; |
510 | DEBUGPOLL( static unsigned int prev_mask = 0; ); | 510 | DEBUGPOLL( static unsigned int prev_mask = 0; ); |
@@ -531,7 +531,7 @@ static int sync_serial_ioctl(struct inode *inode, struct file *file, | |||
531 | unsigned int cmd, unsigned long arg) | 531 | unsigned int cmd, unsigned long arg) |
532 | { | 532 | { |
533 | int return_val = 0; | 533 | int return_val = 0; |
534 | int dev = MINOR(file->f_dentry->d_inode->i_rdev); | 534 | int dev = iminor(file->f_dentry->d_inode); |
535 | sync_port* port; | 535 | sync_port* port; |
536 | reg_sser_rw_tr_cfg tr_cfg; | 536 | reg_sser_rw_tr_cfg tr_cfg; |
537 | reg_sser_rw_rec_cfg rec_cfg; | 537 | reg_sser_rw_rec_cfg rec_cfg; |
@@ -789,7 +789,7 @@ static int sync_serial_ioctl(struct inode *inode, struct file *file, | |||
789 | static ssize_t sync_serial_write(struct file * file, const char * buf, | 789 | static ssize_t sync_serial_write(struct file * file, const char * buf, |
790 | size_t count, loff_t *ppos) | 790 | size_t count, loff_t *ppos) |
791 | { | 791 | { |
792 | int dev = MINOR(file->f_dentry->d_inode->i_rdev); | 792 | int dev = iminor(file->f_dentry->d_inode); |
793 | DECLARE_WAITQUEUE(wait, current); | 793 | DECLARE_WAITQUEUE(wait, current); |
794 | sync_port *port; | 794 | sync_port *port; |
795 | unsigned long c, c1; | 795 | unsigned long c, c1; |
@@ -919,7 +919,7 @@ static ssize_t sync_serial_write(struct file * file, const char * buf, | |||
919 | static ssize_t sync_serial_read(struct file * file, char * buf, | 919 | static ssize_t sync_serial_read(struct file * file, char * buf, |
920 | size_t count, loff_t *ppos) | 920 | size_t count, loff_t *ppos) |
921 | { | 921 | { |
922 | int dev = MINOR(file->f_dentry->d_inode->i_rdev); | 922 | int dev = iminor(file->f_dentry->d_inode); |
923 | int avail; | 923 | int avail; |
924 | sync_port *port; | 924 | sync_port *port; |
925 | unsigned char* start; | 925 | unsigned char* start; |