[adm5120] make boot quiet a bit
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / files / arch / mips / adm5120 / board.c
index 0ac85f529feab9004afac41c014e98c1fa14b0a6..8f383da403e82535e1b6830612ec205ecec4011b 100644 (file)
@@ -3,23 +3,12 @@
  *
  *  ADM5120 generic board code
  *
- *  Copyright (C) 2007 OpenWrt.org
- *  Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
+ *  Copyright (C) 2007,2008 OpenWrt.org
+ *  Copyright (C) 2007,2008 Gabor Juhos <juhosg at openwrt.org>
  *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU General Public License
- *  as published by the Free Software Foundation; either version 2
- *  of the License, or (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the
- *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- *  Boston, MA  02110-1301, USA.
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
  *
  */
 
@@ -39,7 +28,8 @@
 
 #define PFX    "adm5120: "
 
-static LIST_HEAD(adm5120_boards);
+static struct list_head adm5120_boards __initdata =
+                       LIST_HEAD_INIT(adm5120_boards);
 static char adm5120_board_name[ADM5120_BOARD_NAMELEN];
 
 const char *get_system_type(void)
@@ -72,14 +62,14 @@ static int __init adm5120_board_setup(void)
 
        board = adm5120_board_find(mips_machtype);
        if (board == NULL) {
-               printk(KERN_ALERT PFX"no board registered for "
+               printk(KERN_ALERT PFX "no board registered for "
                        "machtype %lu, trying generic\n", mips_machtype);
                board = adm5120_board_find(MACH_ADM5120_GENERIC);
                if (board == NULL)
                        panic(PFX "unsupported board\n");
        }
 
-       printk(KERN_INFO PFX "setting up board '%s'\n", board->name);
+       printk(KERN_INFO PFX "board is '%s'\n", board->name);
 
        memcpy(&adm5120_board_name, board->name, ADM5120_BOARD_NAMELEN);
 
@@ -120,5 +110,4 @@ arch_initcall(adm5120_board_setup);
 void __init adm5120_board_register(struct adm5120_board *board)
 {
        list_add_tail(&board->list, &adm5120_boards);
-       printk(KERN_INFO PFX "registered board '%s'\n", board->name);
 }