w1: fix slave driver registration error message
authorDmitry Artamonow <mad_soft@inbox.ru>
Mon, 2 Apr 2012 05:42:22 +0000 (09:42 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 22:05:47 +0000 (15:05 -0700)
W1 core prints "Failed to register master driver" if error happens
on registering SLAVE driver. Fix it.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1.c

index 9761950697b4775b484f3651920e6a44cd7171b1..2f2e894ea0c84e23392db10c0fb4e46b25b00ab3 100644 (file)
@@ -1027,7 +1027,7 @@ static int __init w1_init(void)
        retval = driver_register(&w1_slave_driver);
        if (retval) {
                printk(KERN_ERR
-                       "Failed to register master driver. err=%d.\n",
+                       "Failed to register slave driver. err=%d.\n",
                        retval);
                goto err_out_master_unregister;
        }