Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1574020imj; Fri, 8 Feb 2019 03:53:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZW/qUjhiQbluhGwmWl7f6KeMiqLM7CSo+MJA3fo9CJQUkj4pIH+zAMux90jVK72O6BxmjE X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr22210549plb.192.1549626789887; Fri, 08 Feb 2019 03:53:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549626789; cv=none; d=google.com; s=arc-20160816; b=ZDdSOztJlzxerXG83M5OJ2GnFW4/ZJf3JT/wiLxGV23nrRc7YSvdUQlM3sjYKtBTHT 0NpRWaRe1aes/tPTN+teGVME36BdVu5K0lID44RmY1+Zuv1V2G0v08S6zfgIC+JFpM/B uDXN+JSqsSMxWhLRHioZ5gX/6SOXEU4vFN9S0P9IHBCxH8XG+48D8rVjchDeCjbz7eqD nPcqUS9yksQd/csR67LYjUjeLpJKANclnoOYA20sHJCHuR0eYX4tlLHMNok0JaDP/rsf TFDKhITrKsomzZP0G1aFMNFrvF2EIjSJM52gMFaVB4ux3ot8oUhvoIOQaUQH7LxdJccS GMOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W+V5woqaUJXfwbss+jiwVYBO8ZS8WTog+50AucJSUeA=; b=EVLjfrXfoo32ho1GnuJD7eDRRWmsscDOP4jjqjvQXV+V0ybOWeURKHnt6KhrwAbuGF IQUFI0VSpaC2nBJdRyxj82DzL5jaB4UeUWROaqd+KWGXrWFQXUBUAZYE084TPQVS7XEj yIMSbr+scjvkJ0YoyCLE5VatQOM3K9RkG7r5ssPghL4PMm1gByanYNu2/OnM6fP0zgZ/ hiCUDszzdDOTKiKbt1rAsbwhqzre/dO2NFdHDE4Gff9UPbskOMMCB/qAOSZ00i9L196S phmmWi7IOYmmDKYov6RHJg3ceLjGBX2a6e54Odltxnseg3Xr3YooNNWCoZdjDmeaC7pU a4iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k135si1947801pgc.574.2019.02.08.03.52.54; Fri, 08 Feb 2019 03:53:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbfBHLwV (ORCPT + 99 others); Fri, 8 Feb 2019 06:52:21 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39747 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727379AbfBHLwH (ORCPT ); Fri, 8 Feb 2019 06:52:07 -0500 X-Originating-IP: 90.88.22.177 Received: from localhost (aaubervilliers-681-1-80-177.w90-88.abo.wanadoo.fr [90.88.22.177]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E9BB660007; Fri, 8 Feb 2019 11:52:04 +0000 (UTC) From: Thomas Petazzoni To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Hoan Tran Subject: [PATCH 2/3] gpio: dwapb: drop ->irq_{request,release}_resources hooks Date: Fri, 8 Feb 2019 12:52:00 +0100 Message-Id: <20190208115201.7518-3-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208115201.7518-1-thomas.petazzoni@bootlin.com> References: <20190208115201.7518-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Those hooks implement the exact same behavior as the default hooks by gpiolib, so there is no point in having a duplicated definition in gpio-dwapb. Signed-off-by: Thomas Petazzoni Cc: Hoan Tran --- Note: this commit was only build tested. --- drivers/gpio/gpio-dwapb.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 044888fd96a1..93eba2c6f328 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -250,31 +250,6 @@ static void dwapb_irq_disable(struct irq_data *d) spin_unlock_irqrestore(&gc->bgpio_lock, flags); } -static int dwapb_irq_reqres(struct irq_data *d) -{ - struct irq_chip_generic *igc = irq_data_get_irq_chip_data(d); - struct dwapb_gpio *gpio = igc->private; - struct gpio_chip *gc = &gpio->ports[0].gc; - int ret; - - ret = gpiochip_lock_as_irq(gc, irqd_to_hwirq(d)); - if (ret) { - dev_err(gpio->dev, "unable to lock HW IRQ %lu for IRQ\n", - irqd_to_hwirq(d)); - return ret; - } - return 0; -} - -static void dwapb_irq_relres(struct irq_data *d) -{ - struct irq_chip_generic *igc = irq_data_get_irq_chip_data(d); - struct dwapb_gpio *gpio = igc->private; - struct gpio_chip *gc = &gpio->ports[0].gc; - - gpiochip_unlock_as_irq(gc, irqd_to_hwirq(d)); -} - static int dwapb_irq_set_type(struct irq_data *d, u32 type) { struct irq_chip_generic *igc = irq_data_get_irq_chip_data(d); @@ -428,8 +403,6 @@ static void dwapb_configure_irqs(struct dwapb_gpio *gpio, ct->chip.irq_set_type = dwapb_irq_set_type; ct->chip.irq_enable = dwapb_irq_enable; ct->chip.irq_disable = dwapb_irq_disable; - ct->chip.irq_request_resources = dwapb_irq_reqres; - ct->chip.irq_release_resources = dwapb_irq_relres; #ifdef CONFIG_PM_SLEEP ct->chip.irq_set_wake = dwapb_irq_set_wake; #endif -- 2.20.1