diff options
author | Fabio Estevam <festevam@gmail.com> | 2021-01-19 03:42:51 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2021-01-29 11:47:25 +0300 |
commit | 579c6f925e5ae3a70ec32e936908066707dbfef5 (patch) | |
tree | 9ce20c27dfd386dad2e09d6d713e9dc744721f52 /arch/arm/mach-imx | |
parent | fbaff050bb092836912b195459ca915b5fea8952 (diff) | |
download | linux-579c6f925e5ae3a70ec32e936908066707dbfef5.tar.xz |
ARM: imx: Remove unused IMX_GPIO_NR() macro
The IMX_GPIO_NR() macro was only used by non-DT i.MX platforms.
As i.MX transitioned to a DT-only platform, get rid of this
unused macro.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/hardware.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/hardware.h b/arch/arm/mach-imx/hardware.h index 7acf7ce467ed..0760fff39a0b 100644 --- a/arch/arm/mach-imx/hardware.h +++ b/arch/arm/mach-imx/hardware.h @@ -106,8 +106,4 @@ .type = _type, \ } -/* There's an off-by-one between the gpio bank number and the gpiochip */ -/* range e.g. GPIO_1_5 is gpio 5 under linux */ -#define IMX_GPIO_NR(bank, nr) (((bank) - 1) * 32 + (nr)) - #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |