Commit 44ac7f5c authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Firmware: Fix returned path for PDC_MODULE_FIND on older machines



Older machines (like my 715/64) don't correctly initialize the
device path when returning from the PDC_MODULE_FIND firmware call.
Work around that shortcoming by initializing the path with the
known values.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 610cb23b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -464,6 +464,7 @@ int pdc_system_map_find_mods(struct pdc_system_map_mod_info *pdc_mod_info,
	unsigned long flags;

	spin_lock_irqsave(&pdc_lock, flags);
	memcpy(pdc_result2, mod_path, sizeof(*mod_path));
	retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result),
			      __pa(pdc_result2), mod_index);
	convert_to_wide(pdc_result);