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.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2024, 2:08 AM
Unknown Object (File)
Mar 12 2024, 2:08 AM
Unknown Object (File)
Mar 12 2024, 2:05 AM
Unknown Object (File)
Mar 12 2024, 1:52 AM
Unknown Object (File)
Feb 25 2024, 6:35 PM
Unknown Object (File)
Jan 5 2024, 2:17 AM
Unknown Object (File)
Jan 3 2024, 3:24 PM
Unknown Object (File)
Dec 20 2023, 1:19 AM
Subscribers

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
Lint Not Applicable
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.