Return 0 instead of an error code on failure to find dcsr.

mpc85xx_map_dcsr() returns a vm_offset_t, not an error code.
mpc85xx_fix_errata() will gracefully exit if mpc85xx_map_dcsr() returns 0, as
that indicates an error (NULL pointer).
This commit is contained in:
Justin Hibbits 2016-08-14 04:11:36 +00:00
parent 7599d2ddad
commit 466a4ffc98

View File

@ -358,10 +358,10 @@ mpc85xx_map_dcsr(void)
* Find the node the long way.
*/
if ((node = OF_finddevice("/")) == -1)
return (ENXIO);
return (0);
if ((node = ofw_bus_find_compatible(node, "fsl,dcsr")) == 0)
return (ENXIO);
return (0);
moveon:
err = fdt_get_range(node, 0, &b, &s);