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: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
dja-dja-mad authored and Jiri Kosina committed Apr 3, 2012
1 parent 409a3e9 commit a03abdc
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 a03abdc

Please sign in to comment.