setup.c (0588000eac9ba4178cebade437da3b28e8fad48f) | setup.c (f65aad41772f6a0022e9763fe06f47604449964c) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2004-2007 Cavium Networks | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2004-2007 Cavium Networks |
7 * Copyright (C) 2008 Wind River Systems | 7 * Copyright (C) 2008, 2009 Wind River Systems 8 * written by Ralf Baechle <ralf@linux-mips.org> |
8 */ 9#include <linux/init.h> | 9 */ 10#include <linux/init.h> |
11#include <linux/kernel.h> |
|
10#include <linux/console.h> 11#include <linux/delay.h> 12#include <linux/export.h> 13#include <linux/interrupt.h> 14#include <linux/io.h> 15#include <linux/serial.h> 16#include <linux/smp.h> 17#include <linux/types.h> --- 798 unchanged lines hidden (view full) --- 816 if (do_prune) { 817 octeon_prune_device_tree(); 818 pr_info("Using internal Device Tree.\n"); 819 } else { 820 pr_info("Using passed Device Tree.\n"); 821 } 822 unflatten_device_tree(); 823} | 12#include <linux/console.h> 13#include <linux/delay.h> 14#include <linux/export.h> 15#include <linux/interrupt.h> 16#include <linux/io.h> 17#include <linux/serial.h> 18#include <linux/smp.h> 19#include <linux/types.h> --- 798 unchanged lines hidden (view full) --- 818 if (do_prune) { 819 octeon_prune_device_tree(); 820 pr_info("Using internal Device Tree.\n"); 821 } else { 822 pr_info("Using passed Device Tree.\n"); 823 } 824 unflatten_device_tree(); 825} |
826 827static char *edac_device_names[] = { 828 "co_l2c_edac", 829 "co_lmc_edac", 830 "co_pc_edac", 831}; 832 833static int __init edac_devinit(void) 834{ 835 struct platform_device *dev; 836 int i, err = 0; 837 char *name; 838 839 for (i = 0; i < ARRAY_SIZE(edac_device_names); i++) { 840 name = edac_device_names[i]; 841 dev = platform_device_register_simple(name, -1, NULL, 0); 842 if (IS_ERR(dev)) { 843 pr_err("Registation of %s failed!\n", name); 844 err = PTR_ERR(dev); 845 } 846 } 847 848 return err; 849} 850 851device_initcall(edac_devinit); |
|