From patchwork Mon Sep 10 19:50:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 10594733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDD0A14E5 for ; Mon, 10 Sep 2018 19:49:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD3BC292F8 for ; Mon, 10 Sep 2018 19:49:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D021A292EF; Mon, 10 Sep 2018 19:49:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 26BD4292EF for ; Mon, 10 Sep 2018 19:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=x/NuXvOzPN3Gt5WYhCUDooQq3jfP2yoriDVbsZTNp+w=; b=Lrn tUpwRzwrKhGWIf77assHybj4/af8TiKRxpJRQfoOVZRGWcblRjBkxjcD+fxZ/SVYfFRXY+gE3EyZw pGFs5gSxcY92JT1N5SvRbh/l2tEiVTBinCpyJKrHNiUv1V52BrZ7R8kcj8oLDi1cOgtVD2gQBF695 kXpmtfhZIBX5TH9eO6yCdjz0ksq5VyXd0WqecreAXt68dTV+pidkGhXoJv5KPuxlo9Uc2ZfpP5vTr HtL25sKX6gQwu2qGilHzxpWvdCIZQsxDc6MDnsnB5EurNDplrDDVW13gCEHVmaUzq2OWKS40rIRBu RsE1D/6x6zbtqmAPCFfsRQRTrMgZfTg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzSBQ-0003Us-JF; Mon, 10 Sep 2018 19:49:16 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzSBN-0003Sz-26 for linux-arm-kernel@lists.infradead.org; Mon, 10 Sep 2018 19:49:14 +0000 Received: by mail-lf1-x143.google.com with SMTP id c29-v6so18494632lfj.1 for ; Mon, 10 Sep 2018 12:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=xgYuvQY4yWBtm2f06S/yg/wR5OiT+6uG/z3l5BwPSgs=; b=kvcVRxHc0q7ew0GiemJwa4rHm7Rufnyursm5uL/H4JKgS9Cqs62a32S2bpcf5Y/F+w QtV5wo3adm6mepF1vSiqmsX4kqvRBuCfqTwJLRV/QLXKJkgZI3H2XWh7MxJIVTNfiMG2 zWRjXxE9JMUcxlRyrqV4eWyFmPJkeTfbZpYDoObntWA9MVgsZCDHjOMPItDiHWbzhoKI xaWQl1MLR0501ylQQkj/sVyMAPpqUcRtDihsXebZzG47e2v7iavFvqE2J7KEdTEpGqQL MyfvW1cVtSW3pQ4QXsNln79hDdELoc3gOyqqEQXh2fPSmlID+hZ4qZFADKdKzQ3js5O5 prGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xgYuvQY4yWBtm2f06S/yg/wR5OiT+6uG/z3l5BwPSgs=; b=DdoL6bcZRnPyNV8QFBH5I6Uk4/lleJsiJkVnVPq+78aR/vE3q0bzBZ/L3dpnY3qTr7 s7mQCPUullIZe3DQEbLr45ogh4Dgp4/PBOMNfvc8PrIbo/ygL936qy4RcpoJWzF0KP6J 3ExGoYoK6KMND7u/ju6ar/FZi8qZTWfimblZbMGTd3mOcODRecuGNyPkYuQzs5dR0xfn 0xyptw6TtvirM8dJ52sobSOZdkFm99PwA/oqFPYHJNj8OYFa3dnIzb7abZpq8iHNtbtL vPkScjuutPEMFllDuwyyTY7F778KlYI+YCdZBIZYRzL+deB6dkW4tBdwgy0z1RFntVvr ExiQ== X-Gm-Message-State: APzg51BwOyg1J6pZ1VuenbZxHQkMg6VSbux6Id5y9QA4/wPVgZ9jYPHL 6f/SsLdNQ5c2Q5WuTyZ8E5s= X-Google-Smtp-Source: ANB0VdZkdYMpAi24AE+zfrsCIFCILeJHedQVkWFuLJtVPC4drrleNP2vpuV4aQrvjsgBlYzNAb3Eog== X-Received: by 2002:a19:129e:: with SMTP id 30-v6mr13209565lfs.29.1536608940620; Mon, 10 Sep 2018 12:49:00 -0700 (PDT) Received: from z50.lan (93-181-165-181.internetia.net.pl. [93.181.165.181]) by smtp.gmail.com with ESMTPSA id f7-v6sm2871492lfc.4.2018.09.10.12.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 12:48:59 -0700 (PDT) From: Janusz Krzysztofik To: Tony Lindgren Subject: [PATCH] ARM: OMAP1: ams-delta: Don't request unused GPIOs Date: Mon, 10 Sep 2018 21:50:08 +0200 Message-Id: <20180910195008.24127-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.16.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180910_124913_105099_98E1506D X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-omap@vger.kernel.org, Janusz Krzysztofik , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aaro Koskinen MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP GPIOs with no kernel drivers can still be used from user space, don't request them from the board file. Signed-off-by: Janusz Krzysztofik --- arch/arm/mach-omap1/board-ams-delta.c | 40 +---------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index dd625ac3cd09..fee528dccc3e 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c @@ -250,39 +250,6 @@ static struct platform_device latch2_gpio_device = { #define LATCH2_PIN_HOOKFLASH1 14 #define LATCH2_PIN_HOOKFLASH2 15 -static const struct gpio latch_gpios[] __initconst = { - { - .gpio = LATCH1_GPIO_BASE + 6, - .flags = GPIOF_OUT_INIT_LOW, - .label = "dockit1", - }, - { - .gpio = LATCH1_GPIO_BASE + 7, - .flags = GPIOF_OUT_INIT_LOW, - .label = "dockit2", - }, - { - .gpio = AMS_DELTA_GPIO_PIN_SCARD_RSTIN, - .flags = GPIOF_OUT_INIT_LOW, - .label = "scard_rstin", - }, - { - .gpio = AMS_DELTA_GPIO_PIN_SCARD_CMDVCC, - .flags = GPIOF_OUT_INIT_LOW, - .label = "scard_cmdvcc", - }, - { - .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 14, - .flags = GPIOF_OUT_INIT_LOW, - .label = "hookflash1", - }, - { - .gpio = AMS_DELTA_LATCH2_GPIO_BASE + 15, - .flags = GPIOF_OUT_INIT_LOW, - .label = "hookflash2", - }, -}; - static struct regulator_consumer_supply modem_nreset_consumers[] = { REGULATOR_SUPPLY("RESET#", "serial8250.1"), REGULATOR_SUPPLY("POR", "cx20442-codec"), @@ -860,7 +827,6 @@ static void __init ams_delta_led_init(struct gpio_chip *chip) static int __init ams_delta_gpio_init(void) { struct gpio_chip *chip; - int err; if (!machine_is_ams_delta()) return -ENODEV; @@ -871,11 +837,7 @@ static int __init ams_delta_gpio_init(void) else ams_delta_led_init(chip); - err = gpio_request_array(latch_gpios, ARRAY_SIZE(latch_gpios)); - if (err) - pr_err("Couldn't take over latch1/latch2 GPIO pins\n"); - - return err; + return 0; } device_initcall_sync(ams_delta_gpio_init);