Blackfin: allow boards to register early devices
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 23 Sep 2009 08:06:25 +0000 (08:06 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:45 +0000 (00:30 -0500)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/setup.c

index 95448ae9c43a79ff442fc67cb9a5bdf14a901316..69cbc1a812015071cbe80002b253b2f37dea9da7 100644 (file)
@@ -792,10 +792,17 @@ static inline int __init get_mem_size(void)
        BUG();
 }
 
+__attribute__((weak))
+void __init native_machine_early_platform_add_devices(void)
+{
+}
+
 void __init setup_arch(char **cmdline_p)
 {
        unsigned long sclk, cclk;
 
+       native_machine_early_platform_add_devices();
+
        enable_shadow_console();
 
        /* Check to make sure we are running on the right processor */