PERFORCE change 171821 for review
Rafal Jaworowski
raj at FreeBSD.org
Tue Dec 15 14:49:58 PST 2009
http://p4web.freebsd.org/chv.cgi?CH=171821
Change 171821 by raj at raj_fdt on 2009/12/15 22:49:33
Fix simplebus driver style.
Affected files ...
.. //depot/projects/fdt/sys/powerpc/mpc85xx/simplebus.c#3 edit
Differences ...
==== //depot/projects/fdt/sys/powerpc/mpc85xx/simplebus.c#3 (text+ko) ====
@@ -90,7 +90,6 @@
int di_intr_num;
};
-
/*
* Prototypes.
*/
@@ -647,20 +646,20 @@
static int
simplebus_print_child(device_t dev, device_t child)
{
- struct simplebus_devinfo *di;
- struct resource_list *rl;
- int rv;
+ struct simplebus_devinfo *di;
+ struct resource_list *rl;
+ int rv;
- di = device_get_ivars(child);
- rl = &di->di_res;
+ di = device_get_ivars(child);
+ rl = &di->di_res;
rv = 0;
- rv += bus_print_child_header(dev, child);
- rv += resource_list_print_type(rl, "mem", SYS_RES_MEMORY, "%#lx");
- rv += resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld");
- rv += bus_print_child_footer(dev, child);
+ rv += bus_print_child_header(dev, child);
+ rv += resource_list_print_type(rl, "mem", SYS_RES_MEMORY, "%#lx");
+ rv += resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld");
+ rv += bus_print_child_footer(dev, child);
- return (rv);
+ return (rv);
}
static struct resource *
More information about the p4-projects
mailing list