ChangeSet 1.853.1.2, 2002/11/11 17:47:57-08:00, ambx1@neo.rr.com [PATCH] Improved Debug Message Placement - 2.5.46 (2/6) Pointed out by Joe Perches. diff -Nru a/drivers/pnp/driver.c b/drivers/pnp/driver.c --- a/drivers/pnp/driver.c Tue Nov 12 11:14:16 2002 +++ b/drivers/pnp/driver.c Tue Nov 12 11:14:16 2002 @@ -153,8 +153,6 @@ int count; struct list_head *pos; - pnp_dbg("the driver '%s' has been registered", drv->name); - drv->driver.name = drv->name; drv->driver.bus = &pnp_bus_type; drv->driver.probe = pnp_device_probe; @@ -169,13 +167,14 @@ count++; } } + pnp_dbg("the driver '%s' has been registered", drv->name); return count; } void pnp_unregister_driver(struct pnp_driver *drv) { - pnp_dbg("the driver '%s' has been unregistered", drv->name); driver_unregister(&drv->driver); + pnp_dbg("the driver '%s' has been unregistered", drv->name); } /**