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:
parent
124ef7692e
commit
c26e24432a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user