Message ID | 1346834457-6257-1-git-send-email-maxime.ripard@free-electrons.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wednesday 05 September 2012 10:40:50 Maxime Ripard wrote: > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Florian Fainelli <florian@openwrt.org> > --- > drivers/gpio/gpio-74x164.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > > diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c > index a31ad6f..2975036 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 <juhosg@openwrt.org>"); > MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>"); > -- > 1.7.9.5 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Le Wed, 5 Sep 2012 10:40:50 +0200, Maxime Ripard <maxime.ripard@free-electrons.com> a écrit : > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
On Wed, Sep 5, 2012 at 10:40 AM, Maxime Ripard <maxime.ripard@free-electrons.com> wrote: > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> > --- > drivers/gpio/gpio-74x164.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) Acked-by: Linus Walleij <linus.walleij@linaro.org> I guess all of these will go through your kernel tree? Tell me if you want me to apply these to my GPIO tree. Yours, Linus Walleij
Hi Linus, Le 06/09/2012 09:21, Linus Walleij a écrit : > On Wed, Sep 5, 2012 at 10:40 AM, Maxime Ripard > <maxime.ripard@free-electrons.com> wrote: > >> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> >> --- >> drivers/gpio/gpio-74x164.c | 13 +------------ >> 1 file changed, 1 insertion(+), 12 deletions(-) > > Acked-by: Linus Walleij <linus.walleij@linaro.org> > > I guess all of these will go through your kernel tree? > Tell me if you want me to apply these to my GPIO tree. Since I don't have any kernel tree, I guess you can apply them in your tree :)
On Thu, Sep 6, 2012 at 4:10 PM, Maxime Ripard <maxime.ripard@free-electrons.com> wrote: > Hi Linus, > Le 06/09/2012 09:21, Linus Walleij a écrit : >> >> Acked-by: Linus Walleij <linus.walleij@linaro.org> >> >> I guess all of these will go through your kernel tree? >> Tell me if you want me to apply these to my GPIO tree. > > Since I don't have any kernel tree, I guess you can apply them in your > tree :) I was more thinking if the Free Electrons people were doing composite pull requests to ARM SoC. Oh well, nevermind, I'll take them. Applied! Linus Walleij
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index a31ad6f..2975036 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 <juhosg@openwrt.org>"); MODULE_AUTHOR("Miguel Gaio <miguel.gaio@efixo.com>");
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> --- drivers/gpio/gpio-74x164.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)