Return a NULL pointer (0 vm_offset) on error in map_dcsr().

mpc85xx_map_dcsr() returns a vm_offset_t, not an error code.  Follow-up to
r304069.
This commit is contained in:
Justin Hibbits 2016-09-03 04:21:40 +00:00
parent 124ef7692e
commit c26e24432a

View File

@ -367,7 +367,7 @@ moveon:
err = fdt_get_range(node, 0, &b, &s);
if (err != 0)
return (err);
return (0);
law_enable(OCP85XX_TGTIF_DCSR, b, 0x400000);
return pmap_early_io_map(b, 0x400000);