summaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1.c
diff options
context:
space:
mode:
authorDmitry Artamonow <mad_soft@inbox.ru>2012-04-02 07:42:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-10 00:05:47 +0200
commitecf1948985247cf35b5536fa62e02f56476f41f1 (patch)
tree5317605efe84ccb95957a167ddaa014a1a602a9f /drivers/w1/w1.c
parenthv: fix return type of hv_post_message() (diff)
downloadlinux-ecf1948985247cf35b5536fa62e02f56476f41f1.tar.xz
linux-ecf1948985247cf35b5536fa62e02f56476f41f1.zip
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 <mad_soft@inbox.ru> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 1 insertions, 1 deletions
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;
}