diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2006-10-03 04:14:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:06 -0400 |
commit | 2c136efcf6f58d07512c4df83eb494597fe0d229 (patch) | |
tree | c72dd280337a3b807e2f8eef95f48c209f99348f /drivers/ata/pata_hpt366.c | |
parent | 7a545370d20519d7a72e1a801022180970eec34f (diff) |
[PATCH] pata_hpt366: fix typo
switch(reg1 & 0x700) {
case 5:
info_hpt366.private_data = &hpt366_40;
break;
case 9:
info_hpt366.private_data = &hpt366_25;
break;
default:
info_hpt366.private_data = &hpt366_33;
break;
}
The above runs always default part. It should be "(reg1 & 0x700) >> 8".
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ata/pata_hpt366.c')
-rw-r--r-- | drivers/ata/pata_hpt366.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index cf656ecbe507..8c757438f350 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c | |||
@@ -429,7 +429,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
429 | 429 | ||
430 | /* PCI clocking determines the ATA timing values to use */ | 430 | /* PCI clocking determines the ATA timing values to use */ |
431 | /* info_hpt366 is safe against re-entry so we can scribble on it */ | 431 | /* info_hpt366 is safe against re-entry so we can scribble on it */ |
432 | switch(reg1 & 0x700) { | 432 | switch((reg1 & 0x700) >> 8) { |
433 | case 5: | 433 | case 5: |
434 | info_hpt366.private_data = &hpt366_40; | 434 | info_hpt366.private_data = &hpt366_40; |
435 | break; | 435 | break; |