From: Dmitry Artamonow Date: Mon, 2 Apr 2012 05:42:22 +0000 (+0400) Subject: w1: fix slave driver registration error message X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ecf1948985247cf35b5536fa62e02f56476f41f1;p=openwrt%2Fstaging%2Fblogic.git w1: fix slave driver registration error message W1 core prints "Failed to register master driver" if error happens on registering SLAVE driver. Fix it. Signed-off-by: Dmitry Artamonow Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 9761950697b4..2f2e894ea0c8 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -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; }