Skip to content

Commit

Permalink
w1: fix slave driver registration error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Artamonow authored and Greg Kroah-Hartman committed Apr 9, 2012
1 parent 415f0a0 commit ecf1948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/w1/w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ecf1948

Please sign in to comment.