Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 6675ef2 ("PCI: spear: Fix Section mismatch compilation warning for probe()") Signed-off-by: Matwey V. Kornilov <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Viresh Kumar <[email protected]> CC: [email protected] # v3.17+
- Loading branch information