Commit 461671fd authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] misc_register-012-002

From:  Michael Still <mikal@stillhq.com>
parent b9e9691c
...@@ -318,8 +318,11 @@ static int __init i2c_ioc_init(void) ...@@ -318,8 +318,11 @@ static int __init i2c_ioc_init(void)
ret = i2c_bit_add_bus(&ioc_ops); ret = i2c_bit_add_bus(&ioc_ops);
if (ret >= 0) if (ret >= 0){
misc_register(&rtc_dev); ret = misc_register(&rtc_dev);
if(ret < 0)
i2c_bit_del_bus(&ioc_ops);
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment