]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mvebu: coherency: fix registration of PCI bus notifier when !PCI
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 May 2014 15:13:03 +0000 (17:13 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 22 May 2014 14:17:46 +0000 (14:17 +0000)
commit9da45c45701f8368836549124e773219e9f16cc6
treea92a3ca34461a5c07f6ba009eb3198a72f0d4f8e
parenteb3583933dd615ebb7e91509b1be6613bf607be2
ARM: mvebu: coherency: fix registration of PCI bus notifier when !PCI

Commit bc06af10835e ("ARM: mvebu: use hardware I/O coherency also for
PCI devices") added a reference to the pci_bus_type variable, but this
variable is only available when CONFIG_PCI is enabled. Therefore,
there is now a build failure in !CONFIG_PCI situations.

This commit fixes that by enclosing the entire initcall into a
IS_ENABLED(CONFIG_PCI) condition.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1400598783-706-1-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/coherency.c