From: <aot...@us...> - 2004-03-02 23:55:33
|
Update of /cvsroot/gc-linux/linux/drivers/exi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2879/drivers/exi Modified Files: exi-driver.c Log Message: Added `exi_bus_dev' - parent to all devices attached to the bus. Index: exi-driver.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/exi/exi-driver.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- exi-driver.c 2 Mar 2004 23:27:37 -0000 1.2 +++ exi-driver.c 2 Mar 2004 23:43:24 -0000 1.3 @@ -70,6 +70,10 @@ } +struct device exi_bus_dev = { + .bus_id = "exi0", +}; + struct bus_type exi_bus_type = { .name = "exi", .match = exi_bus_match, @@ -77,11 +81,19 @@ static int __init exi_driver_init(void) { - return bus_register(&exi_bus_type); + int err; + + if ((err = device_register(&exi_bus_dev))) + goto out; + if ((err = bus_register(&exi_bus_type))) + goto out; +out: + return err; } postcore_initcall(exi_driver_init); +EXPORT_SYMBOL(exi_bus_dev); EXPORT_SYMBOL(exi_bus_type); EXPORT_SYMBOL(exi_driver_register); EXPORT_SYMBOL(exi_driver_unregister); |