From: Matwey V. Kornilov Date: Thu, 19 Feb 2015 17:41:48 +0000 (+0300) Subject: PCI: spear: Drop __initdata from spear13xx_pcie_driver X-Git-Tag: omap-for-v4.2/o2_dc~207^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a43f32d647273023edddb0dc8f91c4c6378b252b;p=pandora-kernel.git PCI: spear: Drop __initdata from spear13xx_pcie_driver Struct spear13xx_pcie_driver was in initdata, but we passed a pointer to it to platform_driver_register(), which can use the pointer at arbitrary times in the future, even after the initdata is freed. That leads to crashes. Move spear13xx_pcie_driver and things referenced by it (spear13xx_pcie_probe() and dw_pcie_host_init()) out of initdata. [bhelgaas: changelog] Fixes: 6675ef212dac ("PCI: spear: Fix Section mismatch compilation warning for probe()") Signed-off-by: Matwey V. Kornilov Signed-off-by: Bjorn Helgaas Acked-by: Viresh Kumar CC: stable@vger.kernel.org # v3.17+ --- Reading git-diff-tree failed