Skip to contentSkip to conversation

ARM: mv78xx0: Fix compiler error in pcie.c

PATCH New Andrew Lunn 2 participants 2 messages May 16, 2012

Subsystems (3)
lore
Share & tools
lore

Andrew Lunn

author maintainer
#0 lore raw

PATCH 1/1 ARM: mv78xx0: Fix compiler error in pcie.c

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

---
 arch/arm/mach-mv78xx0/pcie.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mv78xx0/pcie.c +1 -1
index 67357d1..2e56e86 100644
@@ -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;
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/1 ARM: mv78xx0: Fix compiler error in pcie.c

Quoted 5 lines · Andrew Lunn

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

I've already merged my fix into the original commit in my pci branch after you reported the problem in private.

Thanks.