Merge tag ‘gpio-v3.9-lastminute’ of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio [Linux 3.9]

This Linux kernel change "Merge tag ‘gpio-v3.9-lastminute’ of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio" is included in the Linux 3.9 release. This change is authored by Linus Torvalds <torvalds [at] linux-foundation.org> on Wed Apr 24 17:01:58 2013 -0700. The commit for this change in Linux stable tree is 3c71d03 (patch). Other info about this change: Merge: 824282c cf3fa17

Merge tag 'gpio-v3.9-lastminute' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio

Pull gpi fix from Linus Walleij:
 "This is a last minute revert for the GPIO tree, as Mike Dunn noticed
  breakage on some older PXA machines due to moving PXA GPIO initcalls
  to the module_init initlevel"

* tag 'gpio-v3.9-lastminute' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
  Revert "gpio: pxa: set initcall level to module init"

There is no are 0 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/gpio/gpio-pxa.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c
index 9cc108d..8325f58 100644
--- a/drivers/gpio/gpio-pxa.c
+++ b/drivers/gpio/gpio-pxa.c
@@ -642,7 +642,12 @@ static int pxa_gpio_probe(struct platform_device *pdev)
        .of_match_table = of_match_ptr(pxa_gpio_dt_ids),
    },
 };
-module_platform_driver(pxa_gpio_driver);
+
+static int __init pxa_gpio_init(void)
+{
+   return platform_driver_register(&pxa_gpio_driver);
+}
+postcore_initcall(pxa_gpio_init);

 #ifdef CONFIG_PM
 static int pxa_gpio_suspend(void)

Leave a Reply

Your email address will not be published. Required fields are marked *