Re: [PATCH 1/2] parisc: fix compile without CONFIG_PCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


> From f49bd6e33a3b6f499a6039a5980af21893524e86 Mon Sep 17 00:00:00 2001
> From: Rolf Eike Beer <eike-kernel@xxxxxxxxx>
> Date: Mon, 16 Jan 2012 18:59:29 +0100
> Subject: [PATCH 1/2] parisc: fix compile without CONFIG_PCI
>
> This function is already defined as a noop in include/asm-generic/iomap.h.
>
> Signed-off-by: Rolf Eike Beer <eike-kernel@xxxxxxxxx>
> ---
>  arch/parisc/lib/iomap.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/parisc/lib/iomap.c b/arch/parisc/lib/iomap.c
> index fb8e10a..b2b0408 100644
> --- a/arch/parisc/lib/iomap.c
> +++ b/arch/parisc/lib/iomap.c
> @@ -436,12 +436,14 @@ void ioport_unmap(void __iomem *addr)
>  	}
>  }
>
> +#ifdef CONFIG_PCI
>  void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
>  {
>  	if (!INDIRECT_ADDR(addr)) {
>  		iounmap(addr);
>  	}
>  }
> +#endif /* CONFIG_PCI */
>
>  EXPORT_SYMBOL(ioread8);
>  EXPORT_SYMBOL(ioread16);
> @@ -461,4 +463,6 @@ EXPORT_SYMBOL(iowrite16_rep);
>  EXPORT_SYMBOL(iowrite32_rep);
>  EXPORT_SYMBOL(ioport_map);
>  EXPORT_SYMBOL(ioport_unmap);
> +#ifdef CONFIG_PCI
>  EXPORT_SYMBOL(pci_iounmap);
> +#endif /* CONFIG_PCI */

James?
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux