projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a529b59
)
ide: fix /proc/ide/ide?/mate reporting
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 30 Jun 2008 18:14:45 +0000
(20:14 +0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 30 Jun 2008 18:14:45 +0000
(20:14 +0200)
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>
drivers/ide/ide-proc.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-proc.c
b/drivers/ide/ide-proc.c
index 55ec7f798772d6d60a7d704371eca12c5854616f..8af88bf0969bde8bf41926e1e5834deed20022f6 100644
(file)
--- 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");