From: Bartlomiej Zolnierkiewicz Date: Mon, 30 Jun 2008 18:14:45 +0000 (+0200) Subject: ide: fix /proc/ide/ide?/mate reporting X-Git-Tag: v2.6.26-rc9~73^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4283e1babe167e0ba856bb5d039465358e90785c;p=linux-2.6-omap-h63xx.git 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. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 55ec7f79877..8af88bf0969 100644 --- a/drivers/ide/ide-proc.c +++ 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");