[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1456138810-24008-1-git-send-email-majun258@huawei.com>
Date: Mon, 22 Feb 2016 19:00:10 +0800
From: MaJun <majun258@...wei.com>
To: <Catalin.Marinas@....com>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <Will.Deacon@....com>,
<mark.rutland@....com>, <marc.zyngier@....com>,
<jason@...edaemon.net>, <tglx@...utronix.de>, <lizefan@...wei.com>,
<huxinwei@...wei.com>, <dingtianhong@...wei.com>,
<liguozhu@...ilicon.com>, <guohanjun@...wei.com>,
<majun258@...wei.com>, <zhaojunhua@...ilicon.com>
Subject: [PATCH] Irq/mbigen:Promote the mbigen driver register timing
From: Ma Jun <majun258@...wei.com>
Using module_platform_driver() to register mbigen driver is
too late for some driver to apply irq, because the mbigen irq
domain is not created yet.
Signed-off-by: Ma Jun <majun258@...wei.com>
---
drivers/irqchip/irq-mbigen.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/irqchip/irq-mbigen.c b/drivers/irqchip/irq-mbigen.c
index 4dd3eb8..4df359c 100644
--- a/drivers/irqchip/irq-mbigen.c
+++ b/drivers/irqchip/irq-mbigen.c
@@ -289,7 +289,14 @@ static struct platform_driver mbigen_platform_driver = {
.probe = mbigen_device_probe,
};
-module_platform_driver(mbigen_platform_driver);
+static __init int mbigen_init(void)
+
+{
+ return platform_driver_register(&mbigen_platform_driver);
+
+}
+
+arch_initcall(mbigen_init);
MODULE_AUTHOR("Jun Ma <majun258@...wei.com>");
MODULE_AUTHOR("Yun Wu <wuyun.wu@...wei.com>");
--
1.7.1
Powered by blists - more mailing lists