diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-04-24 17:54:50 -0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-09 11:08:11 +0200 |
commit | dd640039e8de4135fd59d4d963487d1239d6fabe (patch) | |
tree | eef57b5f604cb4b469d784fecad9629faf4dd07a /drivers/gpio | |
parent | a49f2e748de7b163c9e5099edf5f6f9f6fc70dbb (diff) | |
download | op-kernel-dev-dd640039e8de4135fd59d4d963487d1239d6fabe.zip op-kernel-dev-dd640039e8de4135fd59d4d963487d1239d6fabe.tar.gz |
gpio: mvebu: Remove initcall-based driver initialization
There's no reason to use an initcall to initialize this driver,
and regular module_platform_driver() can be used instead.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mvebu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index 8018d30..418e386 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -736,9 +736,4 @@ static struct platform_driver mvebu_gpio_driver = { }, .probe = mvebu_gpio_probe, }; - -static int __init mvebu_gpio_init(void) -{ - return platform_driver_register(&mvebu_gpio_driver); -} -postcore_initcall(mvebu_gpio_init); +module_platform_driver(mvebu_gpio_driver); |