Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba5c4f1b authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Kyle McMartin
Browse files

[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: default avatarMatthew Wilcox <willy@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent aa0eecb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -188,7 +188,7 @@ pat_query_module(ulong pcell_loc, ulong mod_index)
	temp = pa_pdc_cell.cba;
	temp = pa_pdc_cell.cba;
	dev = alloc_pa_dev(PAT_GET_CBA(temp), &pa_pdc_cell.mod_path);
	dev = alloc_pa_dev(PAT_GET_CBA(temp), &pa_pdc_cell.mod_path);
	if (!dev) {
	if (!dev) {
		return PDC_NE_MOD;
		return PDC_OK;
	}
	}


	/* alloc_pa_dev sets dev->hpa */
	/* alloc_pa_dev sets dev->hpa */