diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-03-13 22:05:54 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-03-13 22:05:54 +0000 |
commit | fef01f0498aa7b256bc37bbf28ee0e8ac9b2536f (patch) | |
tree | 1d4ce11d8cce6610cf2645dbe73c13cbded53648 /sys/kern/bus_if.m | |
parent | 582b84cd252d56f06556134b1103da3a0425fdbd (diff) | |
download | src-fef01f0498aa7b256bc37bbf28ee0e8ac9b2536f.tar.gz src-fef01f0498aa7b256bc37bbf28ee0e8ac9b2536f.zip |
new-bus: Remove the 'type' argument from BUS_ADJUST_RESOURCE
The public bus_adjust_resource() API still accepts both forms, but the
internal kobj method no longer passes the argument. Implementations
which need the type now use rman_get_type() to fetch the value from
the allocated resource.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44128
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r-- | sys/kern/bus_if.m | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 7078683911b8..497b98ca4601 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -399,7 +399,6 @@ METHOD int deactivate_resource { * * @param _dev the parent device of @p _child * @param _child the device which allocated the resource - * @param _type the type of resource * @param _res the resource to adjust * @param _start the new starting address of the resource range * @param _end the new ending address of the resource range @@ -407,7 +406,6 @@ METHOD int deactivate_resource { METHOD int adjust_resource { device_t _dev; device_t _child; - int _type; struct resource *_res; rman_res_t _start; rman_res_t _end; |