Skip to content

Commit

Permalink
alim15x3: cleanup ali_cable_detect()
Browse files Browse the repository at this point in the history
Remove leftover local_irq_[save,restore]() and FIXME note.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and David S. Miller committed Jan 19, 2010
1 parent 5f6bd68 commit d23f33d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/ide/alim15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,13 @@ static int ali_cable_override(struct pci_dev *pdev)
*
* This checks if the controller and the cable are capable
* of UDMA66 transfers. It doesn't check the drives.
* But see note 2 below!
*
* FIXME: frobs bits that are not defined on newer ALi devicea
*/

static u8 ali_cable_detect(ide_hwif_t *hwif)
{
struct pci_dev *dev = to_pci_dev(hwif->dev);
unsigned long flags;
u8 cbl = ATA_CBL_PATA40, tmpbyte;

local_irq_save(flags);

if (m5229_revision >= 0xC2) {
/*
* m5229 80-pin cable detection (from Host View)
Expand All @@ -377,8 +371,6 @@ static u8 ali_cable_detect(ide_hwif_t *hwif)
}
}

local_irq_restore(flags);

return cbl;
}

Expand Down

0 comments on commit d23f33d

Please sign in to comment.