svn commit: r274642 - head/sys/dev/gpio
Luiz Otavio O Souza
loos at FreeBSD.org
Tue Nov 18 02:11:08 UTC 2014
Author: loos
Date: Tue Nov 18 02:11:07 2014
New Revision: 274642
URL: https://svnweb.freebsd.org/changeset/base/274642
Log:
Remove unnecessary code.
After r273566, the gpiobus version of bus_print_child() also works on FDT
systems.
Modified:
head/sys/dev/gpio/ofw_gpiobus.c
Modified: head/sys/dev/gpio/ofw_gpiobus.c
==============================================================================
--- head/sys/dev/gpio/ofw_gpiobus.c Tue Nov 18 01:54:31 2014 (r274641)
+++ head/sys/dev/gpio/ofw_gpiobus.c Tue Nov 18 02:11:07 2014 (r274642)
@@ -324,23 +324,6 @@ ofw_gpiobus_add_child(device_t dev, u_in
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_metho
/* 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 */
More information about the svn-src-all
mailing list