diff options
author | Matwey V. Kornilov <matwey@sai.msu.ru> | 2015-02-19 17:41:48 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-03-06 17:47:28 (GMT) |
commit | a43f32d647273023edddb0dc8f91c4c6378b252b (patch) | |
tree | 82eb305a0ba4dd653c864c7b35e26796a7cd343b /drivers/ssb | |
parent | 085a68d0010ffa57603b93c2b09fdf98bf74218c (diff) | |
download | linux-a43f32d647273023edddb0dc8f91c4c6378b252b.tar.xz |
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 <matwey@sai.msu.ru>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
CC: stable@vger.kernel.org # v3.17+
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions