aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:21 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:21 -0400
commit2625cd52b6eafb63b72f2e53f933f41ba9e34dff (patch)
tree1d104d623465a7c566dfa886ef1a77d43bb17970 /drivers/ide/ide.c
parentce9b248bb451134fcb41e189e83e3838fb57caf0 (diff)
ide: fix ide_find_port()
* Instead of checking for '->io_ports[IDE_DATA_OFFSET] == 0' check for '->chipset == ide_unknown' when looking for an empty ide_hwifs[] slot. * Do ide-pnp initialization after ide-generic when IDE is built-in (ide-pnp is the only user of ide_find_port() which needs such fixup). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 5f545153391a..67ce697a9d51 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -255,7 +255,7 @@ ide_hwif_t * ide_find_port(unsigned long base)
255 255
256 for (i = 0; i < MAX_HWIFS; i++) { 256 for (i = 0; i < MAX_HWIFS; i++) {
257 hwif = &ide_hwifs[i]; 257 hwif = &ide_hwifs[i];
258 if (hwif->io_ports[IDE_DATA_OFFSET] == 0) 258 if (hwif->chipset == ide_unknown)
259 goto found; 259 goto found;
260 } 260 }
261 261