Page MenuHomeFreeBSD

Replace several bus_alloc_resource() calls with default arguments with bus_alloc_resource_any()
ClosedPublic

Authored by jhibbits on Feb 17 2016, 3:50 AM.

Details

Summary

Related to D5255 and D4544. Since these calls only use default
arguments, bus_alloc_resource_any() is the right call.

Test Plan

make universe

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhibbits retitled this revision from to Replace several bus_alloc_resource() calls with default arguments with bus_alloc_resource_any().
jhibbits updated this object.
jhibbits edited the test plan for this revision. (Show Details)
jhibbits added a reviewer: jhb.

This looks good to me. bus_alloc_resource_any() has been in the tree long enough that this shouldn't affect the ability of these drivers to support older releases. The bulk of them appear to be written by the vendor and committed.

Thanks for doing this cleanup...

I would also check for allocations of '0, 0, 0' as in sys/dev/cy. Those are also effectively an "any" request. All of these changes look good of course.

This revision was automatically updated to reflect the committed changes.