summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-01-13 15:11:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-13 10:12:25 -0800
commitd885d4f3728f386034bb2f7a61b7f2054c49b2d4 (patch)
treea91ff83dc2c6fc96a845993dde0923fafc6a76ca /drivers/pcmcia
parent2ccffaf92e7b7cc9dfa6c3458fc9cb151621680a (diff)
downloadblackbird-obmc-linux-d885d4f3728f386034bb2f7a61b7f2054c49b2d4.tar.gz
blackbird-obmc-linux-d885d4f3728f386034bb2f7a61b7f2054c49b2d4.zip
pcmcia: add missing include for new pci resource handler
The recently added rsrc_pci.c file calls pci_bus_alloc_resource without including the header file that declares it, and that sometimes causes a build warning on ARM: drivers/pcmcia/rsrc_pci.c: In function 'find_io_region': drivers/pcmcia/rsrc_pci.c:40:2: error: implicit declaration of function 'pci_bus_alloc_resource' [-Werror=implicit-function-declaration] This adds the missing include statement. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 02b03846bb2be ("pcmcia: add a new resource manager for non ISA systems") Acked-by: Alan Cox <alan@linux.intel.com> Reported-by: Jim Davis <jim.epost@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/rsrc_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pcmcia/rsrc_pci.c b/drivers/pcmcia/rsrc_pci.c
index 8934d3c01f80..21c3683b1a53 100644
--- a/drivers/pcmcia/rsrc_pci.c
+++ b/drivers/pcmcia/rsrc_pci.c
@@ -1,6 +1,7 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kernel.h>
+#include <linux/pci.h>
#include <pcmcia/ss.h>
#include <pcmcia/cistpl.h>
OpenPOWER on IntegriCloud