From patchwork Tue Sep 23 22:55:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 37770 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92A0D20792 for ; Tue, 23 Sep 2014 22:55:29 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id x13sf850355wgg.8 for ; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3JrktXRy+2gjSfVG4vEzZhf8oxxpSz1kz3aeSPuiW/w=; b=Ptnvsw39OFgf4H+TVqUnhZbzz5RuX8pFmZsA8SgiBvyXEXKCCg7iQHeDNp6tHf/Tu0 0FpZP8jes9GRJ+2lSj8mZKdraeFomGYOfof43jH+3aoNcc3RxS4Py5DXS0g0lvrdpieE 7i9oVWDWbKt0EPps1ZINcBZU085du72b3JNFTCMv3AuCBtAvjgMpdbolmgNchjptSkj7 X/gFidkZKgXnp1hUkn/1DtUwXkkv84CtYmyr91igVOplrAubL4SfCdRjtgLKlIYpwLmL ZQzjZmwdNyJoFUR/v9mxPSPzjRUui2655amLtvcEFRFheot2ffsjdbjzuoY6OjNoP8hI zucw== X-Gm-Message-State: ALoCoQlD9+Xpa2HpzEvg+EwSlNaTQwcmGJy6BHkVkJUZ6Gb3Q4v185FGiBv00SDgGqT/Cx+6SJjT X-Received: by 10.152.2.97 with SMTP id 1mr11922lat.6.1411512928643; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.44 with SMTP id jt12ls109943lab.49.gmail; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) X-Received: by 10.112.87.69 with SMTP id v5mr2355177lbz.15.1411512928471; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [2a00:1450:4010:c04::231]) by mx.google.com with ESMTPS id 2si20467422lay.98.2014.09.23.15.55.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 15:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::231 as permitted sender) client-ip=2a00:1450:4010:c04::231; Received: by mail-lb0-f177.google.com with SMTP id z12so9673870lbi.36 for ; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) X-Received: by 10.112.200.134 with SMTP id js6mr2533282lbc.0.1411512928257; Tue, 23 Sep 2014 15:55:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp496391lbb; Tue, 23 Sep 2014 15:55:27 -0700 (PDT) X-Received: by 10.68.221.36 with SMTP id qb4mr3350713pbc.159.1411512926750; Tue, 23 Sep 2014 15:55:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk9si23083209pad.188.2014.09.23.15.55.26 for ; Tue, 23 Sep 2014 15:55:26 -0700 (PDT) Received-SPF: none (google.com: linux-mmc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756859AbaIWWzY (ORCPT + 4 others); Tue, 23 Sep 2014 18:55:24 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:47646 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756734AbaIWWzX (ORCPT ); Tue, 23 Sep 2014 18:55:23 -0400 Received: by mail-pd0-f177.google.com with SMTP id v10so5535534pde.36 for ; Tue, 23 Sep 2014 15:55:22 -0700 (PDT) X-Received: by 10.70.47.68 with SMTP id b4mr2833522pdn.61.1411512922748; Tue, 23 Sep 2014 15:55:22 -0700 (PDT) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id w8sm13003939pbs.7.2014.09.23.15.55.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Sep 2014 15:55:21 -0700 (PDT) From: behanw@converseincode.com To: bcm@fixthebug.org, chris@printf.net, gnurou@gmail.com, linus.walleij@linaro.org, mporter@linaro.org, ulf.hansson@linaro.org Cc: bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, rjui@broadcom.com, Behan Webster Subject: [PATCH v2 1/2] gpio, bcm-kona, LLVMLinux: Remove use of __initconst Date: Tue, 23 Sep 2014 15:55:07 -0700 Message-Id: <1411512908-19237-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20140923212922.GG12270@beef> References: <20140923212922.GG12270@beef> Sender: linux-mmc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Behan Webster The __initconst is in the wrong place, and when moved to the correct place it uncovers an error where the variable is used by non-init data structures. Instead merely make them const and put the const in the right spot. Signed-off-by: Behan Webster Reviewed-by: Mark Charlebois Acked-by: Arnd Bergmann Acked-by: Matt Porter --- drivers/gpio/gpio-bcm-kona.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index 3f6b33c..de0801e 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c @@ -496,7 +496,7 @@ static struct irq_chip bcm_gpio_irq_chip = { .irq_release_resources = bcm_kona_gpio_irq_relres, }; -static struct __initconst of_device_id bcm_kona_gpio_of_match[] = { +static struct of_device_id const bcm_kona_gpio_of_match[] = { { .compatible = "brcm,kona-gpio" }, {} };