ARM: mv78xx0: Fix compiler error in pcie.c
Andrew Lunn
maintainerPATCH 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
Signed-off-by Andrew Lunn <[email protected]>
--- arch/arm/mach-mv78xx0/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mv78xx0/pcie.c +1 -1
@@ -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
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.