[POWERPC] ibmebus: More descriptive error return code in ibmebus_store_probe()
authorJoachim Fenkes <fenkes@de.ibm.com>
Wed, 26 Sep 2007 09:46:34 +0000 (19:46 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 03:25:28 +0000 (13:25 +1000)
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/ibmebus.c

index 7697d5b8296e5c51a4eb86bc1f9319eeefdcd50d..53bf64623bd891ce909f3cd177ab7a2e5df14c77 100644 (file)
@@ -397,10 +397,10 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus,
                return -ENOMEM;
 
        if (bus_find_device(&ibmebus_bus_type, NULL, path,
-                            ibmebus_match_path)) {
+                           ibmebus_match_path)) {
                printk(KERN_WARNING "%s: %s has already been probed\n",
                       __FUNCTION__, path);
-               rc = -EINVAL;
+               rc = -EEXIST;
                goto out;
        }