gpio: smp2p: Remove setting IRQ flags

set_irq_flags is ARM specific with custom flags which have genirq equivalents.
The translation of flags is as follows:

IRQF_VALID -> !IRQ_NOREQUEST
IRQF_PROBE -> !IRQ_NOPROBE
IRQF_NOAUTOEN -> IRQ_NOAUTOEN

For IRQs managed by an irqdomain, the irqdomain core code handles clearing
and setting IRQ_NOREQUEST already, so there is no need to do this in
.map() functions and we can simply remove the set_irq_flags calls.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
This commit is contained in:
Karthikeyan Ramasubramanian 2016-01-22 18:31:26 -07:00 committed by David Keitel
parent d4516a3652
commit 07eb2c2868

View file

@ -1,6 +1,6 @@
/* drivers/gpio/gpio-msm-smp2p.c /* drivers/gpio/gpio-msm-smp2p.c
* *
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * Copyright (c) 2013-2014, 2016 The Linux Foundation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and
@ -377,7 +377,6 @@ static int smp2p_irq_map(struct irq_domain *domain_ptr, unsigned int virq,
irq_set_chip_and_handler(virq, &smp2p_gpio_irq_chip, irq_set_chip_and_handler(virq, &smp2p_gpio_irq_chip,
handle_level_irq); handle_level_irq);
irq_set_chip_data(virq, chip); irq_set_chip_data(virq, chip);
set_irq_flags(virq, IRQF_VALID);
return 0; return 0;
} }