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 | |
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')
-rw-r--r-- | arch/cris/arch-v10/drivers/eeprom.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/gpio.c | 2 | ||||
-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 |
5 files changed, 11 insertions, 11 deletions
diff --git a/arch/cris/arch-v10/drivers/eeprom.c b/arch/cris/arch-v10/drivers/eeprom.c index 037582028560..6e1f191a71e3 100644 --- a/arch/cris/arch-v10/drivers/eeprom.c +++ b/arch/cris/arch-v10/drivers/eeprom.c | |||
@@ -450,9 +450,9 @@ int __init eeprom_init(void) | |||
450 | static int eeprom_open(struct inode * inode, struct file * file) | 450 | static int eeprom_open(struct inode * inode, struct file * file) |
451 | { | 451 | { |
452 | 452 | ||
453 | if(MINOR(inode->i_rdev) != EEPROM_MINOR_NR) | 453 | if(iminor(inode) != EEPROM_MINOR_NR) |
454 | return -ENXIO; | 454 | return -ENXIO; |
455 | if(MAJOR(inode->i_rdev) != EEPROM_MAJOR_NR) | 455 | if(imajor(inode) != EEPROM_MAJOR_NR) |
456 | return -ENXIO; | 456 | return -ENXIO; |
457 | 457 | ||
458 | if( eeprom.size > 0 ) | 458 | if( eeprom.size > 0 ) |
diff --git a/arch/cris/arch-v10/drivers/gpio.c b/arch/cris/arch-v10/drivers/gpio.c index 48fd801792d1..fcba6632ed7b 100644 --- a/arch/cris/arch-v10/drivers/gpio.c +++ b/arch/cris/arch-v10/drivers/gpio.c | |||
@@ -435,7 +435,7 @@ static int | |||
435 | gpio_open(struct inode *inode, struct file *filp) | 435 | gpio_open(struct inode *inode, struct file *filp) |
436 | { | 436 | { |
437 | struct gpio_private *priv; | 437 | struct gpio_private *priv; |
438 | int p = MINOR(inode->i_rdev); | 438 | int p = iminor(inode); |
439 | 439 | ||
440 | if (p > GPIO_MINOR_LAST) | 440 | if (p > GPIO_MINOR_LAST) |
441 | return -EINVAL; | 441 | return -EINVAL; |
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; |