diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2015-09-29 10:36:59 +0800 |
---|---|---|
committer | Sherlock Wang <sherlock.wang@139.com> | 2015-11-06 15:51:16 +0800 |
commit | 70bdf0de74b2d8375e8d4851d459d20adbc32a9c (patch) | |
tree | 4b7639d124688903dd75dad7492c608f70b9cf69 | |
parent | 9a291941ec208a42faeedea247e00f6bae96689a (diff) |
PCI: hisi: use subsys_initcall for hisi pcie init
Some pcie device drivers like vgaarb probe very early, so the pcie host driver
should initialize earlier, use subsys_initcall instead of module_platform_driver.
Cc: liudongdong <liudongdong3@huawei.com>
Cc: Gabriele Paoloni <gabriele.paoloni@huawei.com>
CC: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
-rw-r--r-- | drivers/pci/host/pcie-hisi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pci/host/pcie-hisi.c b/drivers/pci/host/pcie-hisi.c index b7043d898462..7a655f81f979 100644 --- a/drivers/pci/host/pcie-hisi.c +++ b/drivers/pci/host/pcie-hisi.c @@ -273,11 +273,14 @@ static const struct of_device_id hisi_pcie_of_match[] = { MODULE_DEVICE_TABLE(of, hisi_pcie_of_match); static struct platform_driver hisi_pcie_driver = { - .probe = hisi_pcie_probe, .driver = { .name = "hisi-pcie", .of_match_table = hisi_pcie_of_match, }, }; -module_platform_driver(hisi_pcie_driver); +static int __init hisi_pcie_init(void) +{ + return platform_driver_probe(&hisi_pcie_driver, hisi_pcie_probe); +} +subsys_initcall(hisi_pcie_init); |