Skip to contentSkip to conversation

ide: fix /proc/ide/ide?/mate reporting

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Jun 30, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ide: fix /proc/ide/ide?/mate reporting

Now that we support warm-plug mate port will be registered even if there are no devices attached to it.

---
 drivers/ide/ide-proc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ide/ide-proc.c +1 -1
Index: b/drivers/ide/ide-proc.c
===================================================================
@@ -76,7 +76,7 @@ static int proc_ide_read_mate
 	ide_hwif_t	*hwif = (ide_hwif_t *) data;
 	int		len;
 
-	if (hwif && hwif->mate && hwif->mate->present)
+	if (hwif && hwif->mate)
 		len = sprintf(page, "%s\n", hwif->mate->name);
 	else
 		len = sprintf(page, "(none)\n");