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:
John Baldwin 2024-02-16 09:40:34 -08:00
parent 5130b35ef5
commit 68a3ff0411

View file

@ -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);
}