mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
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: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
409a3e9813
commit
a03abdcb8e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user