Patchwork [3/7] MIPS: bcm63xx: fix double gpio registration.

login
register
mail settings
Submitter Maxime Bizon
Date 2010-01-30 05:01:54
Message ID <1264872898-28149-4-git-send-email-mbizon@freebox.fr>
Download mbox | patch
Permalink /patch/899/
State Accepted
Delegated to: Ralf Baechle
Headers show

Comments

Maxime Bizon - 2010-01-30 05:01:54
bcm63xx_gpio_init is already called from prom_init to allow board to
use them early, so we can remove the unneeded arch_initcall.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 arch/mips/bcm63xx/gpio.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Ralf Baechle - 2010-03-19 12:03:38
On Sat, Jan 30, 2010 at 06:34:54PM +0100, Maxime Bizon wrote:

> bcm63xx_gpio_init is already called from prom_init to allow board to
> use them early, so we can remove the unneeded arch_initcall.

Applied, thanks.

  Ralf

Patch

diff --git a/arch/mips/bcm63xx/gpio.c b/arch/mips/bcm63xx/gpio.c
index 87ca390..3725345 100644
--- a/arch/mips/bcm63xx/gpio.c
+++ b/arch/mips/bcm63xx/gpio.c
@@ -130,5 +130,3 @@  int __init bcm63xx_gpio_init(void)
 
 	return gpiochip_add(&bcm63xx_gpio_chip);
 }
-
-arch_initcall(bcm63xx_gpio_init);