All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Improved Debug Message Placement - 2.5.46 (2/6)
@ 2002-11-06 20:54 Adam Belay
  0 siblings, 0 replies; only message in thread
From: Adam Belay @ 2002-11-06 20:54 UTC (permalink / raw)
  To: greg, linux-kernel

Pointed out by Joe Perches.


diff -ur --new-file a/drivers/pnp/driver.c b/drivers/pnp/driver.c
--- a/drivers/pnp/driver.c	Wed Oct 30 17:16:54 2002
+++ b/drivers/pnp/driver.c	Wed Oct 30 17:28:19 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);
 }
 
 /**

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-07  1:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 20:54 [PATCH] Improved Debug Message Placement - 2.5.46 (2/6) Adam Belay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.