From: Maxime Ripard Date: Wed, 5 Sep 2012 08:40:50 +0000 (+0200) Subject: gpio: 74x164: Use module_spi_driver boiler plate function X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab3b8782618c046386b85ada5e0e789212f17cf8;p=linux-beck.git gpio: 74x164: Use module_spi_driver boiler plate function Signed-off-by: Maxime Ripard Acked-by: Florian Fainelli Acked-by: Thomas Petazzoni Signed-off-by: Linus Walleij --- 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 = { .probe = gen_74x164_probe, .remove = __devexit_p(gen_74x164_remove), }; - -static int __init gen_74x164_init(void) -{ - return spi_register_driver(&gen_74x164_driver); -} -subsys_initcall(gen_74x164_init); - -static void __exit gen_74x164_exit(void) -{ - spi_unregister_driver(&gen_74x164_driver); -} -module_exit(gen_74x164_exit); +module_spi_driver(gen_74x164_driver); MODULE_AUTHOR("Gabor Juhos "); MODULE_AUTHOR("Miguel Gaio ");