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:
parent
7599d2ddad
commit
466a4ffc98
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user