aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2014-11-18 02:11:07 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2014-11-18 02:11:07 +0000
commitf3e51f4ba09ae161a04fd0f6956c61f10393484a (patch)
treea1efd01a8766fddc3d6c7fadeaafbd5bc9774578 /sys/dev
parent844aff82a6599a8d96545dfb89663809e71719fc (diff)
downloadsrc-f3e51f4ba09ae161a04fd0f6956c61f10393484a.tar.gz
src-f3e51f4ba09ae161a04fd0f6956c61f10393484a.zip
Remove unnecessary code.
After r273566, the gpiobus version of bus_print_child() also works on FDT systems.
Notes
Notes: svn path=/head/; revision=274642
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/gpio/ofw_gpiobus.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/gpio/ofw_gpiobus.c b/sys/dev/gpio/ofw_gpiobus.c
index 5917a084d2da..225e905855ce 100644
--- a/sys/dev/gpio/ofw_gpiobus.c
+++ b/sys/dev/gpio/ofw_gpiobus.c
@@ -324,23 +324,6 @@ ofw_gpiobus_add_child(device_t dev, u_int order, const char *name, int unit)
return (child);
}
-static int
-ofw_gpiobus_print_child(device_t dev, device_t child)
-{
- struct ofw_gpiobus_devinfo *devi;
- int retval = 0;
-
- devi = device_get_ivars(child);
- retval += bus_print_child_header(dev, child);
- retval += printf(" at pin(s) ");
- gpiobus_print_pins(&devi->opd_dinfo);
- resource_list_print_type(&devi->opd_dinfo.rl, "irq", SYS_RES_IRQ,
- "%ld");
- retval += bus_print_child_footer(dev, child);
-
- return (retval);
-}
-
static const struct ofw_bus_devinfo *
ofw_gpiobus_get_devinfo(device_t bus, device_t dev)
{
@@ -358,7 +341,6 @@ static device_method_t ofw_gpiobus_methods[] = {
/* Bus interface */
DEVMETHOD(bus_child_pnpinfo_str, ofw_bus_gen_child_pnpinfo_str),
- DEVMETHOD(bus_print_child, ofw_gpiobus_print_child),
DEVMETHOD(bus_add_child, ofw_gpiobus_add_child),
/* ofw_bus interface */