[brcm63xx] add support for 2.6.32, dropped the SPI patch for now
[openwrt.git] / target / linux / brcm63xx / patches-2.6.32 / 009-fix-double-gpio-registration.patch
1 From mbizon@freebox.fr Sat Jan 30 18:34:54 2010
2 Delivered-To: f.fainelli@gmail.com
3 Received: by 10.204.59.143 with SMTP id l15cs160635bkh;
4         Sat, 30 Jan 2010 09:36:50 -0800 (PST)
5 Received: by 10.223.77.85 with SMTP id f21mr2160176fak.40.1264873010074;
6         Sat, 30 Jan 2010 09:36:50 -0800 (PST)
7 Return-Path: <linux-mips-bounce@linux-mips.org>
8 Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176])
9         by mx.google.com with ESMTP id 9si4978784fxm.2.2010.01.30.09.36.49;
10         Sat, 30 Jan 2010 09:36:50 -0800 (PST)
11 Received-SPF: neutral (google.com: 78.24.191.176 is neither permitted nor denied by best guess record for domain of linux-mips-bounce@linux-mips.org) client-ip=78.24.191.176;
12 Authentication-Results: mx.google.com; spf=neutral (google.com: 78.24.191.176 is neither permitted nor denied by best guess record for domain of linux-mips-bounce@linux-mips.org) smtp.mail=linux-mips-bounce@linux-mips.org
13 Received: from localhost (localhost [127.0.0.1])
14         by arrakis.dune.hu (Postfix) with ESMTP id CA65423C0C11;
15         Sat, 30 Jan 2010 18:36:49 +0100 (CET)
16 X-Virus-Scanned: at arrakis.dune.hu
17 X-Spam-Flag: NO
18 X-Spam-Score: -0.529
19 X-Spam-Level: 
20 X-Spam-Status: No, score=-0.529 required=5 tests=[AWL=-1.118, BAYES_00=-2.599,
21         FH_DATE_PAST_20XX=3.188] autolearn=no
22 Received: from arrakis.dune.hu ([127.0.0.1])
23         by localhost (arrakis.dune.hu [127.0.0.1]) (amavisd-new, port 10024)
24         with ESMTP id QzyrvmnW4GpM; Sat, 30 Jan 2010 18:36:47 +0100 (CET)
25 Received: from eddie.linux-mips.org (eddie.linux-mips.org [78.24.191.182])
26         by arrakis.dune.hu (Postfix) with ESMTP id F1E8B23C0C0B;
27         Sat, 30 Jan 2010 18:36:46 +0100 (CET)
28 Received: from localhost.localdomain ([127.0.0.1]:37132 "EHLO
29         eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)
30         by eddie.linux-mips.org with ESMTP id S1492196Ab0A3Rgq (ORCPT
31         <rfc822;juhosg@openwrt.org> + 2 others);
32         Sat, 30 Jan 2010 18:36:46 +0100
33 Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 30 Jan 2010 18:36:27 +0100 (CET)
34 Received: from sakura.staff.proxad.net ([213.228.1.107]:53010 "EHLO
35         sakura.staff.proxad.net" rhost-flags-OK-OK-OK-OK)
36         by eddie.linux-mips.org with ESMTP id S1492994Ab0A3RfM (ORCPT
37         <rfc822;linux-mips@linux-mips.org>); Sat, 30 Jan 2010 18:35:12 +0100
38 Received: by sakura.staff.proxad.net (Postfix, from userid 1000)
39         id 30AA6551082; Sat, 30 Jan 2010 18:35:12 +0100 (CET)
40 From:   Maxime Bizon <mbizon@freebox.fr>
41 To: linux-mips@linux-mips.org,
42  ralf@linux-mips.org
43 Cc: Maxime Bizon <mbizon@freebox.fr>
44 Subject: [PATCH 3/7] MIPS: bcm63xx: fix double gpio registration.
45 Date:   Sat, 30 Jan 2010 18:34:54 +0100
46 Message-Id: <1264872898-28149-4-git-send-email-mbizon@freebox.fr>
47 X-Mailer: git-send-email 1.6.3.3
48 In-Reply-To: <1264872898-28149-1-git-send-email-mbizon@freebox.fr>
49 References: <1264872898-28149-1-git-send-email-mbizon@freebox.fr>
50 X-archive-position: 25760
51 X-ecartis-version: Ecartis v1.0.0
52 Sender: linux-mips-bounce@linux-mips.org
53 Errors-to: linux-mips-bounce@linux-mips.org
54 X-original-sender: mbizon@freebox.fr
55 Precedence: bulk
56 X-list: linux-mips
57 X-UID: 7928
58 X-Length: 3635
59 Status: R
60 X-Status: N
61 X-KMail-EncryptionState:  
62 X-KMail-SignatureState:  
63 X-KMail-MDN-Sent:  
64
65 bcm63xx_gpio_init is already called from prom_init to allow board to
66 use them early, so we can remove the unneeded arch_initcall.
67
68 Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
69 ---
70  arch/mips/bcm63xx/gpio.c |    2 --
71  1 files changed, 0 insertions(+), 2 deletions(-)
72
73 diff --git a/arch/mips/bcm63xx/gpio.c b/arch/mips/bcm63xx/gpio.c
74 index 87ca390..3725345 100644
75 --- a/arch/mips/bcm63xx/gpio.c
76 +++ b/arch/mips/bcm63xx/gpio.c
77 @@ -130,5 +130,3 @@ int __init bcm63xx_gpio_init(void)
78  
79         return gpiochip_add(&bcm63xx_gpio_chip);
80  }
81 -
82 -arch_initcall(bcm63xx_gpio_init);
83 -- 
84 1.6.3.3
85
86