Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112901
b: refs/heads/master
c: 9232c14
h: refs/heads/master
i:
  112899: 2052a5d
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 10, 2008
1 parent 96ec84d commit 2888da5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: feb22b7f8e62b1b987a3a1dbad95af767a1df832
refs/heads/master: 9232c14bff36d65de254f34386c00b732c5b6099
4 changes: 1 addition & 3 deletions trunk/drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ void ide_init_port_data(ide_hwif_t *hwif, unsigned int index)
hwif->name[2] = 'e';
hwif->name[3] = '0' + index;

hwif->bus_state = BUSSTATE_ON;

init_completion(&hwif->gendev_rel_comp);

hwif->tp_ops = &default_tp_ops;
Expand Down Expand Up @@ -620,7 +618,7 @@ int generic_ide_ioctl(ide_drive_t *drive, struct file *file, struct block_device
case HDIO_GET_BUSSTATE:
if (!capable(CAP_SYS_ADMIN))
return -EACCES;
if (put_user(HWIF(drive)->bus_state, (long __user *)arg))
if (put_user(BUSSTATE_ON, (long __user *)arg))
return -EFAULT;
return 0;

Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ typedef struct hwif_s {
u8 major; /* our major number */
u8 index; /* 0 for ide0; 1 for ide1; ... */
u8 channel; /* for dual-port chips: 0=primary, 1=secondary */
u8 bus_state; /* power state of the IDE bus */

u32 host_flags;

Expand Down

0 comments on commit 2888da5

Please sign in to comment.