Message ID | 5891890cfc1c8ce45c310e3876485011518aeba9.1461806071.git.chunkeey@googlemail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@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 2B99BBF29F for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Apr 2016 09:08:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E68520221 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Apr 2016 09:08:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92E9C202A1 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 28 Apr 2016 09:08:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1avhts-0006hL-BN; Thu, 28 Apr 2016 09:06:20 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1avhtS-0006Sq-0D for linux-arm-kernel@lists.infradead.org; Thu, 28 Apr 2016 09:05:54 +0000 Received: by mail-wm0-x241.google.com with SMTP id n129so11657203wmn.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 28 Apr 2016 02:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=teqNHmGQimYRjHCGyv1Otj2uM9LfexO+XRsI4nkl9+Q=; b=U/APoMFu7w++Cot0aw7gk4emqJ5uQFZlJg1JugYi1ovFlxH8RtIAbQW4ZMx/oOKuXL 4w3HIDxbb4Sroe+Yq1scNUTlgU+jlZ6BypPdHXZE0O6WM7bt305uQn9kBMzDa70mtP5l 6n2sKPoFIrUJlOOD73t1ch0hG5ijuUsn80J7RRIck0BhcD97ygPrOoUBy+0JElJQc5Ei Q+SRjljPISDXER3mCfhojD2eNqGk26txZwfxnY1LgNVADRHp0L/n9N3skvzq4L4x3VOi Ukc37BDZKeb0RiWr1DZCpXlsGTXiWe30Lohk5zk90eiP+WxjWJiIua5RoYh+dn00G4n4 /Z/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=teqNHmGQimYRjHCGyv1Otj2uM9LfexO+XRsI4nkl9+Q=; b=VVyDo0TgQN4XNe/xbgvBBYJlpCxDnFdm+NAHsvhJeB1IQZbqkresDCeWvZ54N1b4GS BAqVNlr2LEerDuoI9l4Z1Cy5TSCndfITuD+h4yYFput+vrCrq9bfYdQRtIhwVqsR32OE D72D2n07F8h9GLMCT2jGfj6lTrgIsx4PYUTD2yr67zeEb1PKlLJ+t4c2Vqs2elN9RmPN M+HUEAv7JkVPnMX3zejCjFm3GbhK+1dQ6yKJioJADApy0ulq5woGEALDHTWen+jVBhEz IVVFjffJKwyAWElTljlF8ZbQTcOi5ugsMd6dyMS1kuceebwV2mNMCAzn5D0a1xEO/xpu ZqZg== X-Gm-Message-State: AOPr4FWseuQ+N24bPe/Xgq8v7N3W+6jEWNoypYSaPLyDJxVJ9f8osnPXunl/nUEc40QbNg== X-Received: by 10.28.232.1 with SMTP id f1mr14868131wmh.6.1461834332295; Thu, 28 Apr 2016 02:05:32 -0700 (PDT) Received: from debian64.daheim (p5B2E6CB2.dip0.t-ipconnect.de. [91.46.108.178]) by smtp.googlemail.com with ESMTPSA id jq1sm8519268wjc.28.2016.04.28.02.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Apr 2016 02:05:31 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.87) (envelope-from <chunkeey@googlemail.com>) id 1avht3-0001vv-PO; Thu, 28 Apr 2016 11:05:29 +0200 From: Christian Lamparter <chunkeey@googlemail.com> To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC v4 1/8] gpio: generic: fix GPIO_GENERIC_PLATFORM is set to module case Date: Thu, 28 Apr 2016 11:05:11 +0200 Message-Id: <5891890cfc1c8ce45c310e3876485011518aeba9.1461806071.git.chunkeey@googlemail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <cover.1461806071.git.chunkeey@googlemail.com> References: <cover.1461806071.git.chunkeey@googlemail.com> In-Reply-To: <cover.1461806071.git.chunkeey@googlemail.com> References: <cover.1461806071.git.chunkeey@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160428_020554_205271_CBF83D74 X-CRM114-Status: GOOD ( 11.90 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Alexandre Courbot <gnurou@gmail.com>, =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>, Pawel Moll <pawel.moll@arm.com>, Alexander Shiyan <shc_work@mail.ru>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, Kumar Gala <galak@codeaurora.org>, Christian Lamparter <chunkeey@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 |
diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c index 54cddfa..6c1cb3b 100644 --- a/drivers/gpio/gpio-generic.c +++ b/drivers/gpio/gpio-generic.c @@ -549,7 +549,7 @@ int bgpio_init(struct gpio_chip *gc, struct device *dev, } EXPORT_SYMBOL_GPL(bgpio_init); -#ifdef CONFIG_GPIO_GENERIC_PLATFORM +#if IS_ENABLED(CONFIG_GPIO_GENERIC_PLATFORM) static void __iomem *bgpio_map(struct platform_device *pdev, const char *name,
GPIO_GENERIC_PLATFORM is a tristate. If the module option is selected the resulting gpio-generic.ko will lack most of the module initialzation and probe code. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> --- drivers/gpio/gpio-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)