diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 22:38:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 22:38:23 +0000 |
commit | 16cfed3365a82eeeff2d6b93a3dd6711effb6424 (patch) | |
tree | 2db1a081a9deced28e6753bdad332ec63e8c899a /target/linux/cns3xxx/patches-4.4/031-pcie_init.patch | |
parent | 67cfc02b8b78261ede31020494515b924d31cbce (diff) | |
download | master-187ad058-16cfed3365a82eeeff2d6b93a3dd6711effb6424.tar.gz master-187ad058-16cfed3365a82eeeff2d6b93a3dd6711effb6424.tar.bz2 master-187ad058-16cfed3365a82eeeff2d6b93a3dd6711effb6424.zip |
cns3xxx: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48334 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/patches-4.4/031-pcie_init.patch')
-rw-r--r-- | target/linux/cns3xxx/patches-4.4/031-pcie_init.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-4.4/031-pcie_init.patch b/target/linux/cns3xxx/patches-4.4/031-pcie_init.patch new file mode 100644 index 0000000000..651d1a2f07 --- /dev/null +++ b/target/linux/cns3xxx/patches-4.4/031-pcie_init.patch @@ -0,0 +1,33 @@ +--- a/arch/arm/mach-cns3xxx/laguna.c ++++ b/arch/arm/mach-cns3xxx/laguna.c +@@ -849,7 +849,6 @@ static struct map_desc laguna_io_desc[] + static void __init laguna_map_io(void) + { + cns3xxx_map_io(); +- cns3xxx_pcie_iotable_init(); + iotable_init(ARRAY_AND_SIZE(laguna_io_desc)); + laguna_early_serial_setup(); + } +@@ -873,15 +872,6 @@ static int laguna_register_gpio(struct g + return ret; + } + +-static int __init laguna_pcie_init(void) +-{ +- if (!machine_is_gw2388()) +- return 0; +- +- return cns3xxx_pcie_init(); +-} +-subsys_initcall(laguna_pcie_init); +- + static int __init laguna_model_setup(void) + { + u32 __iomem *mem; +@@ -1077,5 +1067,6 @@ MACHINE_START(GW2388, "Gateworks Corpora + .init_irq = cns3xxx_init_irq, + .init_time = cns3xxx_timer_init, + .init_machine = laguna_init, ++ .init_late = cns3xxx_pcie_init_late, + .restart = cns3xxx_restart, + MACHINE_END |