Commit 0c8ad9d0 authored by Adam Belay's avatar Adam Belay Committed by Linus Torvalds

[PATCH] Fix PnP BIOS call

The recent escd fix I have made corrects a thinko in the PnPBIOS code and it
turns out that faults from calling /proc/pnp/bus/escd were probably not caused
by BIOS bugs.
parent b3b8b64c
......@@ -493,7 +493,7 @@ static int __pnp_bios_read_escd(char *data, u32 nvram_base)
if (!pnp_bios_present())
return ESCD_FUNCTION_NOT_SUPPORTED;
status = call_pnp_bios(PNP_READ_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, 0,
data, 65536, (void *)nvram_base, 65536);
data, 65536, __va(nvram_base), 65536);
return status;
}
......@@ -516,7 +516,7 @@ static int pnp_bios_write_escd(char *data, u32 nvram_base)
if (!pnp_bios_present())
return ESCD_FUNCTION_NOT_SUPPORTED;
status = call_pnp_bios(PNP_WRITE_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, 0,
data, 65536, nvram_base, 65536);
data, 65536, __va(nvram_base), 65536);
return status;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment