From patchwork Wed Jul 1 12:27:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 6703081 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8DCE9C05AC for ; Wed, 1 Jul 2015 12:27:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB72A20648 for ; Wed, 1 Jul 2015 12:27:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF7B82064D for ; Wed, 1 Jul 2015 12:27:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754066AbbGAM1Z (ORCPT ); Wed, 1 Jul 2015 08:27:25 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:52148 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbbGAM1Y (ORCPT ); Wed, 1 Jul 2015 08:27:24 -0400 Received: from ayla.of.borg ([84.193.93.87]) by laurent.telenet-ops.be with bizsmtp id n0TG1q00K1t5w8s010TGWY; Wed, 01 Jul 2015 14:27:22 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1ZAH6i-0005ua-2E; Wed, 01 Jul 2015 14:27:16 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1ZAH6m-0003YO-Lp; Wed, 01 Jul 2015 14:27:20 +0200 From: Geert Uytterhoeven To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH] gpio: msm: Remove empty msm_gpio_{request,free}() Date: Wed, 1 Jul 2015 14:27:19 +0200 Message-Id: <1435753639-13627-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP gpio_chip.request() and gpio_chip.free() are optional, and can just be left unimplemented. Signed-off-by: Geert Uytterhoeven --- Untested due to lack of hardware. --- drivers/gpio/gpio-msm-v2.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpio/gpio-msm-v2.c b/drivers/gpio/gpio-msm-v2.c index 52ff18229fdc874a..d9ea0c8e5f0aa82d 100644 --- a/drivers/gpio/gpio-msm-v2.c +++ b/drivers/gpio/gpio-msm-v2.c @@ -169,16 +169,6 @@ static int msm_gpio_direction_output(struct gpio_chip *chip, return 0; } -static int msm_gpio_request(struct gpio_chip *chip, unsigned offset) -{ - return 0; -} - -static void msm_gpio_free(struct gpio_chip *chip, unsigned offset) -{ - return; -} - static int msm_gpio_to_irq(struct gpio_chip *chip, unsigned offset) { struct msm_gpio_dev *g_dev = to_msm_gpio_dev(chip); @@ -404,8 +394,6 @@ static int msm_gpio_probe(struct platform_device *pdev) msm_gpio.gpio_chip.get = msm_gpio_get; msm_gpio.gpio_chip.set = msm_gpio_set; msm_gpio.gpio_chip.to_irq = msm_gpio_to_irq; - msm_gpio.gpio_chip.request = msm_gpio_request; - msm_gpio.gpio_chip.free = msm_gpio_free; ret = gpiochip_add(&msm_gpio.gpio_chip); if (ret < 0) {