Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1574540imj; Fri, 8 Feb 2019 03:53:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IbBrcaeFLtWmQjl4EFES3lWrT9QyE6H0VGgzA933xc3+DJ0iZud1Lquxu8FNRrLIQjrs896 X-Received: by 2002:a62:47d9:: with SMTP id p86mr21299901pfi.95.1549626823907; Fri, 08 Feb 2019 03:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549626823; cv=none; d=google.com; s=arc-20160816; b=OF0EL0+fvZ/iCBLwfj5uwjHOeXSztlWMzO2SgBFOjm/GkKd/jKW+TtmUONeSX7BoRv qQZKDI0T3vXQjtmCvrgowRLEs5/Qz7BK7YELGsNLbZHH/tloxwY/xmT5peqJiMpdj6I4 FM4G043R0xm+4U1U5jsepTviTCJfhTh7L1DsE/JPDsdUL6Vk54L4sdw4mPxOGCXtZyNn wCc9QuUFhioM8WLKYZRvxCJPPwf0X9d0qzHFKwfCh04THCw7obA4I31GSvCKxkLTnPrx U8GX9bLycU+xFFeIClExB2K2B0bCoz3JEZg2Oeko/M1Zrd5MgPKmm+KF76ORspoFBpCP 2ZNQ== 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=10DDEdOc43b+oONzqM7Gi8lD5chbhHkZEgkjsyhdsB4=; b=nrKSz/Ti1A1ovfxJ4ePw5wX2WgBibjIc6jgVtt9T2XFyMXY40XasmvAi7P6Wm4sCuO YS0rVaHrk4GAbMI600b0bHM6ayVRVQk+WNS37GKMHQNacgBTKJbsUH94xYqbc65CNCrV SvGc+HRXqbzohFvObeF1V/7Y6FNPX+oq84CdgWLTBeMZCC6shI70K2dPp07HzsA+6XYZ b9Pp2YhtL6M6PXN2nM73Fzv2BYdFqoW0mXA873lD/1wN1W713Y+cJWa7zmqMhqWeXRVm kZbW8OxTREbxmYVIc0zOQGLmi/kKAup+FZi0xsC0dcZykfwRuSdEQ2g2BWr3ZzD0vc7g ny8w== 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 f21si1773460pgv.111.2019.02.08.03.53.27; Fri, 08 Feb 2019 03:53: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 S1727399AbfBHLwH (ORCPT + 99 others); Fri, 8 Feb 2019 06:52:07 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56665 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbfBHLwF (ORCPT ); Fri, 8 Feb 2019 06:52:05 -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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 72F651C0006; Fri, 8 Feb 2019 11:52:03 +0000 (UTC) From: Thomas Petazzoni To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Ray Jui , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 1/3] gpio: bcm-kona: drop ->irq_{request,release}_resources hooks Date: Fri, 8 Feb 2019 12:51:59 +0100 Message-Id: <20190208115201.7518-2-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-bcm-kona. Signed-off-by: Thomas Petazzoni Cc: Ray Jui Cc: Florian Fainelli Cc: Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com --- Note: this commit was only build tested. --- drivers/gpio/gpio-bcm-kona.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index c5536a509b59..0ae806edabc2 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c @@ -484,28 +484,12 @@ static void bcm_kona_gpio_irq_handler(struct irq_desc *desc) chained_irq_exit(chip, desc); } -static int bcm_kona_gpio_irq_reqres(struct irq_data *d) -{ - struct bcm_kona_gpio *kona_gpio = irq_data_get_irq_chip_data(d); - - return gpiochip_reqres_irq(&kona_gpio->gpio_chip, d->hwirq); -} - -static void bcm_kona_gpio_irq_relres(struct irq_data *d) -{ - struct bcm_kona_gpio *kona_gpio = irq_data_get_irq_chip_data(d); - - gpiochip_relres_irq(&kona_gpio->gpio_chip, d->hwirq); -} - static struct irq_chip bcm_gpio_irq_chip = { .name = "bcm-kona-gpio", .irq_ack = bcm_kona_gpio_irq_ack, .irq_mask = bcm_kona_gpio_irq_mask, .irq_unmask = bcm_kona_gpio_irq_unmask, .irq_set_type = bcm_kona_gpio_irq_set_type, - .irq_request_resources = bcm_kona_gpio_irq_reqres, - .irq_release_resources = bcm_kona_gpio_irq_relres, }; static struct of_device_id const bcm_kona_gpio_of_match[] = { -- 2.20.1