gpio: msm: Get rid of NR_GPIO_IRQS
Remove the use and definition of the NR_GPIO_IRQS macro for
device tree targets. This involves removing the macro from the
gpio driver as well. Since this a common gpio driver, certain
non-device tree targets had to be fixed to support this.
However, the NR_GPIO_IRQS macro continues to exist for the
non-device tree targets.
Change-Id: Ie05b20e9f7732f3eb9c972d2aa81280f4b736f29
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8910-gpiomux.c b/arch/arm/mach-msm/board-8910-gpiomux.c
index a67f916..a295a17 100644
--- a/arch/arm/mach-msm/board-8910-gpiomux.c
+++ b/arch/arm/mach-msm/board-8910-gpiomux.c
@@ -21,9 +21,9 @@
{
int rc;
- rc = msm_gpiomux_init(NR_GPIO_IRQS);
+ rc = msm_gpiomux_init_dt();
if (rc) {
- pr_err(KERN_ERR "msm_8910_init_gpiomux failed %d\n", rc);
+ pr_err("%s failed %d\n", __func__, rc);
return;
}
}