Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108301168
D42715.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D42715.diff
View Options
diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c
--- a/sys/dev/gpio/gpiobus.c
+++ b/sys/dev/gpio/gpiobus.c
@@ -755,24 +755,6 @@
}
}
-static int
-gpiobus_set_resource(device_t dev, device_t child, int type, int rid,
- rman_res_t start, rman_res_t count)
-{
- struct gpiobus_ivar *devi;
- struct resource_list_entry *rle;
-
- dprintf("%s: entry (%p, %p, %d, %d, %p, %ld)\n",
- __func__, dev, child, type, rid, (void *)(intptr_t)start, count);
- devi = GPIOBUS_IVAR(child);
- rle = resource_list_add(&devi->rl, type, rid, start,
- start + count - 1, count);
- if (rle == NULL)
- return (ENXIO);
-
- return (0);
-}
-
static int
gpiobus_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
{
@@ -1075,7 +1057,9 @@
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
DEVMETHOD(bus_config_intr, bus_generic_config_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
- DEVMETHOD(bus_set_resource, gpiobus_set_resource),
+ DEVMETHOD(bus_delete_resource, bus_generic_rl_delete_resource),
+ DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource),
+ DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource),
DEVMETHOD(bus_alloc_resource, gpiobus_alloc_resource),
DEVMETHOD(bus_release_resource, gpiobus_release_resource),
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 4:43 PM (19 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16092638
Default Alt Text
D42715.diff (1 KB)
Attached To
Mode
D42715: gpiobus: Use bus_generic_rl_* methods
Attached
Detach File
Event Timeline
Log In to Comment