Commit 0a119366 authored by Steve French's avatar Steve French

Merge bk://linux.bkbits.net/linux-2.5

into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs
parents b113958b b28ae60c
...@@ -390,6 +390,14 @@ static int try_to_identify (ide_drive_t *drive, u8 cmd) ...@@ -390,6 +390,14 @@ static int try_to_identify (ide_drive_t *drive, u8 cmd)
cookie = probe_irq_on(); cookie = probe_irq_on();
/* enable device irq */ /* enable device irq */
hwif->OUTB(drive->ctl, IDE_CONTROL_REG); hwif->OUTB(drive->ctl, IDE_CONTROL_REG);
} else {
/*
* Disable device irq if we don't need to
* probe for it. Otherwise we'll get spurious
* interrupts during the identify-phase that
* the irq handler isn't expecting.
*/
hwif->OUTB(drive->ctl|2, IDE_CONTROL_REG);
} }
retval = actual_try_to_identify(drive, cmd); retval = actual_try_to_identify(drive, cmd);
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
* The attribute `pure' is not implemented in GCC versions earlier * The attribute `pure' is not implemented in GCC versions earlier
* than 2.96. * than 2.96.
*/ */
#if (__GNUC__ == 2 && __GNUC_MINOR >= 96) || __GNUC__ > 2 #if (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || __GNUC__ > 2
#define __attribute_pure__ __attribute__((pure)) #define __attribute_pure__ __attribute__((pure))
#else #else
#define __attribute_pure__ /* unimplemented */ #define __attribute_pure__ /* unimplemented */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment