]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Implement OF PCI address accessors stubs for CONFIG_PCI=n
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 10 Jun 2008 22:31:00 +0000 (08:31 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 30 Jun 2008 12:30:51 +0000 (22:30 +1000)
commit643da166e169cbc5fcc70a796038949647b9ae27
tree004fd1b38a03ddd32a4e06134d67faa2d3d5019c
parent97895905bc3c61af7f966fd26d7e81e87a6798df
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 <avorontsov@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/prom.h