diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-09-05 04:40:50 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-09-07 17:00:32 -0400 |
commit | ab3b8782618c046386b85ada5e0e789212f17cf8 (patch) | |
tree | 22305a4080ef348f39ba881d4915db38c4754239 /drivers/gpio | |
parent | a3b930815d07e2a8a25e85496839f80facb3654d (diff) |
gpio: 74x164: Use module_spi_driver boiler plate function
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-74x164.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index a31ad6f5d910..2975036c36b7 100644 --- a/drivers/gpio/gpio-74x164.c +++ b/drivers/gpio/gpio-74x164.c | |||
@@ -159,18 +159,7 @@ static struct spi_driver gen_74x164_driver = { | |||
159 | .probe = gen_74x164_probe, | 159 | .probe = gen_74x164_probe, |
160 | .remove = __devexit_p(gen_74x164_remove), | 160 | .remove = __devexit_p(gen_74x164_remove), |
161 | }; | 161 | }; |
162 | 162 | module_spi_driver(gen_74x164_driver); | |
163 | static int __init gen_74x164_init(void) | ||
164 | { | ||
165 | return spi_register_driver(&gen_74x164_driver); | ||
166 | } | ||
167 | subsys_initcall(gen_74x164_init); | ||
168 | |||
169 | static void __exit gen_74x164_exit(void) | ||
170 | { | ||
171 | spi_unregister_driver(&gen_74x164_driver); | ||
172 | } | ||
173 | module_exit(gen_74x164_exit); | ||
174 | 163 | ||
175 | MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>"); | 164 | MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>"); |
176 | MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>"); | 165 | MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>"); |