summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-02-28 20:50:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-02-28 20:50:51 +0000
commit984ac762e463a84395d1d7903234207c6bd984dd (patch)
treedf091f9c6f0aaf4809295c9157673469193b8a78 /target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch
parent32bba7d1540cae89123978a1d1e96f822f4131c6 (diff)
downloadmtk-20170518-984ac762e463a84395d1d7903234207c6bd984dd.zip
mtk-20170518-984ac762e463a84395d1d7903234207c6bd984dd.tar.gz
mtk-20170518-984ac762e463a84395d1d7903234207c6bd984dd.tar.bz2
add support for 2.6.32, dropped the SPI patch for now
SVN-Revision: 19919
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch')
-rw-r--r--target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch b/target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch
new file mode 100644
index 0000000..c8c4ade
--- /dev/null
+++ b/target/linux/brcm63xx/patches-2.6.32/200-call_board_register_device_from_device_initcall.patch
@@ -0,0 +1,22 @@
+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
+
+