lkml.org 
[lkml]   [2009]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] driver core: remove unheeded warning about driver methods
This patch (as1263) removes a warning which has been present for so
long, and consistently ignored, that it obviously is not doing any
good. It gets triggered on pretty much every boot by the SCSI disk
and cdrom drivers. Evidently nobody cares.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

---

Index: usb-2.6/drivers/base/driver.c
===================================================================
--- usb-2.6.orig/drivers/base/driver.c
+++ usb-2.6/drivers/base/driver.c
@@ -225,12 +225,6 @@ int driver_register(struct device_driver

BUG_ON(!drv->bus->p);

- if ((drv->bus->probe && drv->probe) ||
- (drv->bus->remove && drv->remove) ||
- (drv->bus->shutdown && drv->shutdown))
- printk(KERN_WARNING "Driver '%s' needs updating - please use "
- "bus_type methods\n", drv->name);
-
other = driver_find(drv->name, drv->bus);
if (other) {
put_driver(other);


\
 
 \ /
  Last update: 2009-06-17 18:03    [W:0.035 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site