aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@parisc-linux.org>2005-11-17 16:33:29 -0500
committerKyle McMartin <kyle@parisc-linux.org>2005-11-17 16:33:29 -0500
commitba5c4f1bae89eba7b03e58a5448e8b28a006d4df (patch)
tree677d29940c35138c178ac311eb0f8d63a2cb7937
parent[PARISC] Document some register usages in assembly files (diff)
downloadlinux-dev-ba5c4f1bae89eba7b03e58a5448e8b28a006d4df.tar.xz
linux-dev-ba5c4f1bae89eba7b03e58a5448e8b28a006d4df.zip
[PARISC] Return PDC_OK when alloc_pa_dev fails to enumerate all devices
Return PDC_OK when device registration fails so that we enumerate all subsequent devices, even when we get two devices with the same hardware path (which should never happen, but does with at least one revision of rp8400 firmware). Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
-rw-r--r--arch/parisc/kernel/inventory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/inventory.c b/arch/parisc/kernel/inventory.c
index 1a1c66422736..8f563871e83c 100644
--- a/arch/parisc/kernel/inventory.c
+++ b/arch/parisc/kernel/inventory.c
@@ -188,7 +188,7 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
temp = pa_pdc_cell.cba;
dev = alloc_pa_dev(PAT_GET_CBA(temp), &pa_pdc_cell.mod_path);
if (!dev) {
- return PDC_NE_MOD;
+ return PDC_OK;
}
/* alloc_pa_dev sets dev->hpa */