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>
This commit is contained in:
Fabio Estevam 2021-01-18 21:42:51 -03:00 committed by Shawn Guo
parent fbaff050bb
commit 579c6f925e

View File

@ -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__ */