powerpc mpc85xx: Fix infinite recursion in bus_adjust_resource method
The default case needs to call bus_generic_adjust_resource to pass the
request up the tree, not bus_adjust_resource which will just call this
method again.
Fixes: 5a7e717fb7 powerpc mpc85xx: Use bus_generic_rman_*
This commit is contained in:
@@ -773,7 +773,8 @@ lbc_adjust_resource(device_t dev, device_t child, int type, struct resource *r,
|
||||
return (bus_generic_rman_adjust_resource(dev, child, type, r,
|
||||
start, end));
|
||||
case SYS_RES_IRQ:
|
||||
return (bus_adjust_resource(dev, type, r, start, end));
|
||||
return (bus_generic_adjust_resource(dev, child, type, r, start,
|
||||
end));
|
||||
default:
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user