From: Tarun Kanti DebBarma Date: Tue, 27 Sep 2011 00:08:09 +0000 (+0530) Subject: gpio/omap: remove unnecessary bit-masking for read access X-Git-Tag: v3.4-rc1~65^2~24^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3901eaf1fc289e8175faa8c7c460d542b6eb7dd;p=karo-tx-linux.git gpio/omap: remove unnecessary bit-masking for read access Remove un-necessary bit masking. Since the register are 4 byte aligned and readl would work as is. The 'enabled' mask is already taking care to mask for bank width. Signed-off-by: Charulatha V Signed-off-by: Tarun Kanti DebBarma Reviewed-by: Santosh Shilimkar Reviewed-by: Kevin Hilman Signed-off-by: Kevin Hilman --- diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 485b6b207ef9..38beccc9e655 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -576,9 +576,6 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc) enabled = _get_gpio_irqbank_mask(bank); isr_saved = isr = __raw_readl(isr_reg) & enabled; - if (cpu_is_omap15xx() && (bank->method == METHOD_MPUIO)) - isr &= 0x0000ffff; - if (bank->level_mask) level_mask = bank->level_mask & enabled;