提交 a03abdcb 编写于 作者: D Dmitry Artamonow 提交者: Jiri Kosina

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: NDmitry Artamonow <mad_soft@inbox.ru>
Acked-by: NEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 409a3e98
...@@ -1027,7 +1027,7 @@ static int __init w1_init(void) ...@@ -1027,7 +1027,7 @@ static int __init w1_init(void)
retval = driver_register(&w1_slave_driver); retval = driver_register(&w1_slave_driver);
if (retval) { if (retval) {
printk(KERN_ERR printk(KERN_ERR
"Failed to register master driver. err=%d.\n", "Failed to register slave driver. err=%d.\n",
retval); retval);
goto err_out_master_unregister; goto err_out_master_unregister;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册