[PARISC] Return PDC_OK when alloc_pa_dev fails to enumerate all devices
authorMatthew Wilcox <willy@parisc-linux.org>
Thu, 17 Nov 2005 21:33:29 +0000 (16:33 -0500)
committerKyle McMartin <kyle@parisc-linux.org>
Thu, 17 Nov 2005 21:33:29 +0000 (16:33 -0500)
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>
arch/parisc/kernel/inventory.c

index 1a1c66422736e331710780ff929c00c29ec09ff7..8f563871e83c599e068872215b1b0d4fc0a80bdf 100644 (file)
@@ -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 */