From 07eb2c2868fe5a87477b03e8cdde7a4f57a7189b Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Fri, 22 Jan 2016 18:31:26 -0700 Subject: [PATCH] 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 --- drivers/gpio/gpio-msm-smp2p.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-msm-smp2p.c b/drivers/gpio/gpio-msm-smp2p.c index bde81f0473bd..f4982dce49b7 100644 --- a/drivers/gpio/gpio-msm-smp2p.c +++ b/drivers/gpio/gpio-msm-smp2p.c @@ -1,6 +1,6 @@ /* 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 * 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, handle_level_irq); irq_set_chip_data(virq, chip); - set_irq_flags(virq, IRQF_VALID); return 0; }