mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
gpio: 74x164: Use module_spi_driver boiler plate function
Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Thomas Petazzoni <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
a3b930815d
commit
ab3b878261
1 changed files with 1 additions and 12 deletions
|
|
@ -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 <[email protected]>");
|
||||
MODULE_AUTHOR("Miguel Gaio <[email protected]>");
|
||||
|
|
|
|||
Loading…
Reference in a new issue