[PATCH 09/13] ARM: imx: Remove unused IO_ADDRESS() macros
Arnd Bergmann
arnd at arndb.de
Wed Sep 16 17:34:53 EDT 2020
On Wed, Sep 16, 2020 at 10:56 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> The IO_ADDRESS() macros were used to retrieve the peripherals
> base address for board related code.
>
> Now that i.MX is a devicetree-only platforms, all base addresses are
> retrieved from devicetree and these macros are unused.
>
> Remove the unused IO_ADDRESS() macros.
>
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
> arch/arm/mach-imx/mx27.h | 1 -
> arch/arm/mach-imx/mx31.h | 1 -
> arch/arm/mach-imx/mx35.h | 1 -
> 3 files changed, 3 deletions(-)
>
> diff --git a/arch/arm/mach-imx/mx27.h b/arch/arm/mach-imx/mx27.h
> index c6f7aae02b67..d6dae9fa8610 100644
> --- a/arch/arm/mach-imx/mx27.h
> +++ b/arch/arm/mach-imx/mx27.h
> @@ -112,7 +112,6 @@
> #define MX27_IRAM_BASE_ADDR 0xffff4c00 /* internal ram */
>
> #define MX27_IO_P2V(x) IMX_IO_P2V(x)
> -#define MX27_IO_ADDRESS(x) IOMEM(MX27_IO_P2V(x))
As far as I can tell, the MX27_IO_P2V() macro should be removed here as
well if MX27_IO_ADDRESS() gets removed.
What about the other constants in these files? Are there any remaining
references to the MX*_BASE_ADDRESS, MX*_INT_*, and MX*_DMA_REQ_*
constants after the series?
Arnd
More information about the linux-arm-kernel
mailing list