Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1573608imj; Fri, 8 Feb 2019 03:52:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IaZG0B6eY5Eft0h+oxHHhLOU3fYcXVVuVpLbHYIHY80EZARWtdiXV5zN9SopslDwUWULuYp X-Received: by 2002:a65:4383:: with SMTP id m3mr18936622pgp.96.1549626763338; Fri, 08 Feb 2019 03:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549626763; cv=none; d=google.com; s=arc-20160816; b=qug9fcRog5QWWZ9eMLoKpehHXAb+/cs8ddVLzAYbPb9Z2Diz1o+2JjKFY2yspd+CGa vpp5fyiXEVZO5w0bqKvCMPktvg2Rq0x+5oZd2pO8T+6xAa+Xg2oYaq/RT2dp+DgXVq+U K2HXeEDcq/5mH1q35fhOpY49gkQGwhG/As3da3pOBuDC11OHtAwH4I+F1gwVKPMg5XFb 2ZBD7mUSkPALbqn/hbD1Sh5UIfSm8m9Ivap36L6wCutL5riVyM/USKQnP0nBOYtmKoLg 9XUeWF8I7cxbXcqvyZ18zGGFn1Z1qUqC5W78xgj/Be0sRRuWSLGbiBAHtdJr55zuNAbP HZ+A== 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=gGLzNA+HoJpqnIebVyWNqf9eatJqUdTMp+cPvJFyeQA=; b=AjwJHFfI8lNqPaVAnOF43xJj6kYwXU7QzQhA2GNOifsuKNUnIxlfjwlOrVEDRNtMT3 MXYUK13GfOjq0rKWQZsge7V1sYbJklOGg5+pXKhksyknvnF7IpDbCod0XsxdXHdhmjDV BchlZ5C+AIQZ6pi/NYnGgO7V2zrCRG92cIPBtIOcJYCLMnqXg9Lbahx3NTxIoglWTJY8 J7l8lw56pqyHrdTPALcvgcgLQ+Sk9xz3vsOlQCx4SkqAEULyw/ksUR+iRjaEHw4Nnxel UVCYvS7D7CW10pCmfGfEWUn1YGySJkSS0WUNpUIt6677jRCeCNtkBA09L/AQP6evAYEo kzVA== 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 i1si1925601pgi.480.2019.02.08.03.52.27; Fri, 08 Feb 2019 03:52:43 -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 S1727448AbfBHLwL (ORCPT + 99 others); Fri, 8 Feb 2019 06:52:11 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41121 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727398AbfBHLwI (ORCPT ); Fri, 8 Feb 2019 06:52:08 -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 relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 08111240006; Fri, 8 Feb 2019 11:52:05 +0000 (UTC) From: Thomas Petazzoni To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: [PATCH 3/3] gpio: em: drop ->irq_{request,release}_resources hooks Date: Fri, 8 Feb 2019 12:52:01 +0100 Message-Id: <20190208115201.7518-4-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 --- Note: this commit was only build tested. --- drivers/gpio/gpio-em.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index 982e699a5b81..e27c56854ee7 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -98,29 +98,6 @@ static void em_gio_irq_enable(struct irq_data *d) em_gio_write(p, GIO_IEN, BIT(irqd_to_hwirq(d))); } -static int em_gio_irq_reqres(struct irq_data *d) -{ - struct em_gio_priv *p = irq_data_get_irq_chip_data(d); - int ret; - - ret = gpiochip_lock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); - if (ret) { - dev_err(p->gpio_chip.parent, - "unable to lock HW IRQ %lu for IRQ\n", - irqd_to_hwirq(d)); - return ret; - } - return 0; -} - -static void em_gio_irq_relres(struct irq_data *d) -{ - struct em_gio_priv *p = irq_data_get_irq_chip_data(d); - - gpiochip_unlock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); -} - - #define GIO_ASYNC(x) (x + 8) static unsigned char em_gio_sense_table[IRQ_TYPE_SENSE_MASK + 1] = { @@ -344,8 +321,6 @@ static int em_gio_probe(struct platform_device *pdev) irq_chip->irq_mask = em_gio_irq_disable; irq_chip->irq_unmask = em_gio_irq_enable; irq_chip->irq_set_type = em_gio_irq_set_type; - irq_chip->irq_request_resources = em_gio_irq_reqres; - irq_chip->irq_release_resources = em_gio_irq_relres; irq_chip->flags = IRQCHIP_SKIP_SET_WAKE | IRQCHIP_MASK_ON_SUSPEND; p->irq_domain = irq_domain_add_simple(pdev->dev.of_node, ngpios, 0, -- 2.20.1