Commit 90beaf64 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

w1: ds2405: use module_w1_family to simplify the code

module_w1_family() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 45003a1e
...@@ -224,15 +224,4 @@ static struct w1_family w1_family_ds2405 = { ...@@ -224,15 +224,4 @@ static struct w1_family w1_family_ds2405 = {
.fops = &w1_ds2405_fops .fops = &w1_ds2405_fops
}; };
static int __init w1_ds2405_init(void) module_w1_family(w1_family_ds2405);
{
return w1_register_family(&w1_family_ds2405);
}
static void __exit w1_ds2405_fini(void)
{
w1_unregister_family(&w1_family_ds2405);
}
module_init(w1_ds2405_init);
module_exit(w1_ds2405_fini);
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