summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-proc.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-06-30 20:14:45 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-06-30 20:14:45 +0200
commit4283e1babe167e0ba856bb5d039465358e90785c (patch)
treea19534957abf6f6c14c90e4b547736d99a009147 /drivers/ide/ide-proc.c
parenta529b59060862b36a4dae968534e090c6c77272e (diff)
downloadlinux-4283e1babe167e0ba856bb5d039465358e90785c.tar.gz
linux-4283e1babe167e0ba856bb5d039465358e90785c.tar.bz2
linux-4283e1babe167e0ba856bb5d039465358e90785c.zip
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 <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-proc.c')
-rw-r--r--drivers/ide/ide-proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
index 55ec7f798772..8af88bf0969b 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");