Skip to content

Commit

Permalink
[PARISC] Return PDC_OK when alloc_pa_dev fails to enumerate all devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and Kyle McMartin committed Nov 17, 2005
1 parent aa0eecb commit ba5c4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/kernel/inventory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ba5c4f1

Please sign in to comment.