lkml.org 
[lkml]   [2002]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Improved Debug Message Placement - 2.5.46 (2/6)
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);
}

/**
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.024 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site