[PATCH RESEND 1/2] ARM: ixp4xx: Make dma_set_coherent_mask common, correct implementation

Arnd Bergmann arnd at arndb.de
Mon Mar 17 07:29:38 EDT 2014


On Monday 17 March 2014, Simon Kågström wrote:
> diff --git a/arch/arm/mach-ixp4xx/common-pci.c b/arch/arm/mach-ixp4xx/common-pci.c
> index 200970d..b02c764 100644
> --- a/arch/arm/mach-ixp4xx/common-pci.c
> +++ b/arch/arm/mach-ixp4xx/common-pci.c
> @@ -481,14 +481,6 @@ int ixp4xx_setup(int nr, struct pci_sys_data *sys)
>         return 1;
>  }
>  
> -int dma_set_coherent_mask(struct device *dev, u64 mask)
> -{
> -       if (mask >= SZ_64M - 1)
> -               return 0;
> -
> -       return -EIO;
> -}
> -
>  EXPORT_SYMBOL(ixp4xx_pci_read);
>  EXPORT_SYMBOL(ixp4xx_pci_write);
>  EXPORT_SYMBOL(dma_set_coherent_mask);

When you move this function, you should really move the
'EXPORT_SYMBOL' along with it.

	Arnd



More information about the linux-arm-kernel mailing list