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

From: Greg KH
Date: Sat Jan 08 2005 - 03:52:08 EST


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

[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@xxxxxxxxxx>
Signed-off-by: Dave Jones <davej@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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",

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/