linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ide-generic: probing fix
@ 2008-06-22 19:35 Bartlomiej Zolnierkiewicz
  2008-06-22 19:35 ` [PATCH 2/4] ide: add 'config' field to hw_regs_t Bartlomiej Zolnierkiewicz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-06-22 19:35 UTC (permalink / raw)
  To: linux-ide; +Cc: Bartlomiej Zolnierkiewicz, linux-kernel

* Don't skip probing IDE port if the corresponding ide_hwifs[] slot
  is already occupied.

* Remove duplicate idx[i] assignment.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/ide-generic.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Index: b/drivers/ide/ide-generic.c
===================================================================
--- a/drivers/ide/ide-generic.c
+++ b/drivers/ide/ide-generic.c
@@ -118,15 +118,9 @@ static int __init ide_generic_init(void)
 				continue;
 			}
 
-			/*
-			 * Skip probing if the corresponding
-			 * slot is already occupied.
-			 */
 			hwif = ide_find_port();
-			if (hwif == NULL || hwif->index != i) {
-				idx[i] = 0xff;
+			if (hwif == NULL)
 				continue;
-			}
 
 			hwif->chipset = ide_generic;
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-22 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-22 19:35 [PATCH 1/4] ide-generic: probing fix Bartlomiej Zolnierkiewicz
2008-06-22 19:35 ` [PATCH 2/4] ide: add 'config' field to hw_regs_t Bartlomiej Zolnierkiewicz
2008-06-22 19:36 ` [PATCH 3/4] ide: add struct ide_tp_ops Bartlomiej Zolnierkiewicz
2008-06-22 19:36 ` [PATCH 4/4] ide: add struct ide_host Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).