aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:33 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-10 16:39:33 -0400
commit9232c14bff36d65de254f34386c00b732c5b6099 (patch)
tree12035301709647a6b0cc2d58b554233dc0756be6
parentfeb22b7f8e62b1b987a3a1dbad95af767a1df832 (diff)
ide: remove ->bus_state field from ide_hwif_t
It is always set to BUSSTATE_ON. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/ide.c4
-rw-r--r--include/linux/ide.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index f42de5fe9bc2..f78e789ea5f7 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -96,8 +96,6 @@ void ide_init_port_data(ide_hwif_t *hwif, unsigned int index)
96 hwif->name[2] = 'e'; 96 hwif->name[2] = 'e';
97 hwif->name[3] = '0' + index; 97 hwif->name[3] = '0' + index;
98 98
99 hwif->bus_state = BUSSTATE_ON;
100
101 init_completion(&hwif->gendev_rel_comp); 99 init_completion(&hwif->gendev_rel_comp);
102 100
103 hwif->tp_ops = &default_tp_ops; 101 hwif->tp_ops = &default_tp_ops;
@@ -620,7 +618,7 @@ int generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device
620 case HDIO_GET_BUSSTATE: 618 case HDIO_GET_BUSSTATE:
621 if (!capable(CAP_SYS_ADMIN)) 619 if (!capable(CAP_SYS_ADMIN))
622 return -EACCES; 620 return -EACCES;
623 if (put_user(HWIF(drive)->bus_state, (long __user *)arg)) 621 if (put_user(BUSSTATE_ON, (long __user *)arg))
624 return -EFAULT; 622 return -EFAULT;
625 return 0; 623 return 0;
626 624
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 2c5d83ddaef6..42f39781af87 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -562,7 +562,6 @@ typedef struct hwif_s {
562 u8 major; /* our major number */ 562 u8 major; /* our major number */
563 u8 index; /* 0 for ide0; 1 for ide1; ... */ 563 u8 index; /* 0 for ide0; 1 for ide1; ... */
564 u8 channel; /* for dual-port chips: 0=primary, 1=secondary */ 564 u8 channel; /* for dual-port chips: 0=primary, 1=secondary */
565 u8 bus_state; /* power state of the IDE bus */
566 565
567 u32 host_flags; 566 u32 host_flags;
568 567