Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T08:47:04Z

ChangeSet 1.1938.444.33, 2004/12/22 13:50:21-08:00, davej@redhat.com

[PATCH] driver core: Fix up vesafb failure probing.

bus.c file invokes a probe callback for most devices in a list, then checks
for -ENODEV return ("no such device"), if so it remains silent. However, some
drivers (including vesafb.c) may return -ENXIO ("no such device or address"),
which is indeed error -6.

I shut up the warning with the attached patch, that basically ignores
both -ENODEV and -ENXIO.

>From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125890

original patch by: Alessandro Suardi <alessandro.suardi@oracle.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/base/bus.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/base/bus.c b/drivers/base/bus.c
--- a/drivers/base/bus.c 2005-01-07 15:39:53 -08:00
+++ b/drivers/base/bus.c 2005-01-07 15:39:53 -08:00
@@ -326,7 +326,7 @@
if (!error)
/* success, driver matched */
return 1;
- if (error != -ENODEV)
+ if (error != -ENODEV && error != -ENXIO)
/* driver matched but the probe failed */
printk(KERN_WARNING
"%s: probe of %s failed with error %d\n",