summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/bios32.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-03-10 12:27:28 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-04-26 12:05:38 +0200
commit8084de8ad53332ed6e0ffe5db85533b8150d7d6b (patch)
tree962de4be7e4540a1e4c3f0a2673e6d29379150e3 /arch/arm/kernel/bios32.c
parentLinux 3.4-rc3 (diff)
downloadlinux-8084de8ad53332ed6e0ffe5db85533b8150d7d6b.tar.xz
linux-8084de8ad53332ed6e0ffe5db85533b8150d7d6b.zip
ARM: PCI: remove unused sys->hw
Some platforms mark their hw_pci structure as __initdata, which means it will be discarded after init time. Storing pointers to __initdata in long lived data structures is a potential source of problems, and in this case, sys->hw is unused apart from its initialization. So, lets remove this member and its initializer. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/bios32.c')
-rw-r--r--arch/arm/kernel/bios32.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c
index ede5f7741c42..e17dd2591b26 100644
--- a/arch/arm/kernel/bios32.c
+++ b/arch/arm/kernel/bios32.c
@@ -424,7 +424,6 @@ static void __init pcibios_init_hw(struct hw_pci *hw)
#ifdef CONFIG_PCI_DOMAINS
sys->domain = hw->domain;
#endif
- sys->hw = hw;
sys->busnr = busnr;
sys->swizzle = hw->swizzle;
sys->map_irq = hw->map_irq;