From: Anton Vorontsov Date: Tue, 10 Jun 2008 22:31:00 +0000 (+1000) Subject: powerpc: Implement OF PCI address accessors stubs for CONFIG_PCI=n X-Git-Tag: v2.6.27-rc1~1058^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1f4ee94c3c4480b9cee95da2d19668262636c6;p=pandora-kernel.git powerpc: Implement OF PCI address accessors stubs for CONFIG_PCI=n To avoid "#ifdef CONFIG_PCI" in the drivers we should provide stubs in place of OF PCI address accessors. Without these stubs build breaks for drivers not strictly requiring PCI, for example CONFIG_FB_OF=y without CONFIG_PCI: LD .tmp_vmlinux1 drivers/built-in.o: In function `offb_map_reg': offb.c:(.text+0x6e7c): undefined reference to `of_get_pci_address' OF PCI IRQ accessors require pci_dev argument, so drivers using PCI IRQs should depend on CONFIG_PCI anyway. Signed-off-by: Anton Vorontsov Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed