diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-02-09 15:45:19 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-10 15:32:53 +0100 |
commit | 90beaf64226742733c1b38d086f9e5dcd3b7b0e5 (patch) | |
tree | 81db00088de5d632f45f4c6a82774f9bc482d6f2 /drivers/w1 | |
parent | 45003a1e251a9777a55ab46bc49f6ddf747f7f94 (diff) |
w1: ds2405: use module_w1_family to simplify the code
module_w1_family() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/slaves/w1_ds2405.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/w1/slaves/w1_ds2405.c b/drivers/w1/slaves/w1_ds2405.c index 1f350cf2b6ec..d5d54876cb64 100644 --- a/drivers/w1/slaves/w1_ds2405.c +++ b/drivers/w1/slaves/w1_ds2405.c @@ -224,15 +224,4 @@ static struct w1_family w1_family_ds2405 = { .fops = &w1_ds2405_fops }; -static int __init w1_ds2405_init(void) -{ - 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); +module_w1_family(w1_family_ds2405); |