linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mv78xx0: Fix compiler error in pcie.c
@ 2012-05-16 15:05 Andrew Lunn
  2012-05-16 15:09 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Lunn @ 2012-05-16 15:05 UTC (permalink / raw)
  To: linux-arm-kernel

arch/arm/mach-mv78xx0/pcie.c:256:29: error: 'bus' undeclared (first use in this function)

caused by the patch:

ARM: PCI: dove/kirkwood/mv78xx0: use sys->private_data

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
 arch/arm/mach-mv78xx0/pcie.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c
index 67357d1..2e56e86 100644
--- a/arch/arm/mach-mv78xx0/pcie.c
+++ b/arch/arm/mach-mv78xx0/pcie.c
@@ -253,7 +253,7 @@ mv78xx0_pcie_scan_bus(int nr, struct pci_sys_data *sys)
 static int __init mv78xx0_pcie_map_irq(const struct pci_dev *dev, u8 slot,
 	u8 pin)
 {
-	struct pci_sys_data *sys = bus->sysdata;
+	struct pci_sys_data *sys = dev->bus->sysdata;
 	struct pcie_port *pp = sys->private_data;
 
 	return IRQ_MV78XX0_PCIE_00 + (pp->maj << 2) + pp->min;
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-16 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 15:05 [PATCH] ARM: mv78xx0: Fix compiler error in pcie.c Andrew Lunn
2012-05-16 15:09 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).