lkml.org 
[lkml]   [2003]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectError notification in device release
Greg:

Now that the driver model includes completions for release notification as
well as release methods, the conditions for printing the warning message
in device_release can be relaxed a little...

Alan Stern


===== core.c 1.70 vs edited =====
--- 1.70/drivers/base/core.c Fri Oct 10 16:44:38 2003
+++ edited/drivers/base/core.c Thu Dec 18 12:19:25 2003
@@ -80,7 +80,7 @@

if (dev->release)
dev->release(dev);
- else {
+ else if (!c) {
printk(KERN_ERR "Device '%s' does not have a release() function, "
"it is broken and must be fixed.\n",
dev->bus_id);
-
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:59    [W:0.019 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site