linux-mips
[Top] [All Lists]

[PATCH 6/7] MIPS: bcm63xx: call board_register_device from device_initca

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 6/7] MIPS: bcm63xx: call board_register_device from device_initcall()
From: Maxime Bizon <mbizon@freebox.fr>
Date: Sat, 30 Jan 2010 18:34:57 +0100
Cc: Maxime Bizon <mbizon@freebox.fr>
In-reply-to: <1264872898-28149-1-git-send-email-mbizon@freebox.fr>
References: <1264872898-28149-1-git-send-email-mbizon@freebox.fr>
Sender: linux-mips-bounce@linux-mips.org
Some device registration (eg leds), expect subsystem initcall to be
run first, so move board device registration to device_initcall().

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 arch/mips/bcm63xx/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/bcm63xx/setup.c b/arch/mips/bcm63xx/setup.c
index d005659..04a3499 100644
--- a/arch/mips/bcm63xx/setup.c
+++ b/arch/mips/bcm63xx/setup.c
@@ -124,4 +124,4 @@ int __init bcm63xx_register_devices(void)
        return board_register_devices();
 }
 
-arch_initcall(bcm63xx_register_devices);
+device_initcall(bcm63xx_register_devices);
-- 
1.6.3.3


<Prev in Thread] Current Thread [Next in Thread>