setup.c (a02001086bbfb4da35d1228bebc2f1b442db455f) setup.c (6774def6422f6eac53f1828c317bf3b08a8f5a60)
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, 2009 Wind River Systems
8 * written by Ralf Baechle <ralf@linux-mips.org>

--- 1078 unchanged lines hidden (view full) ---

1087
1088 if (disable_octeon_edac_p)
1089 return 0;
1090
1091 for (i = 0; i < ARRAY_SIZE(edac_device_names); i++) {
1092 name = edac_device_names[i];
1093 dev = platform_device_register_simple(name, -1, NULL, 0);
1094 if (IS_ERR(dev)) {
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, 2009 Wind River Systems
8 * written by Ralf Baechle <ralf@linux-mips.org>

--- 1078 unchanged lines hidden (view full) ---

1087
1088 if (disable_octeon_edac_p)
1089 return 0;
1090
1091 for (i = 0; i < ARRAY_SIZE(edac_device_names); i++) {
1092 name = edac_device_names[i];
1093 dev = platform_device_register_simple(name, -1, NULL, 0);
1094 if (IS_ERR(dev)) {
1095 pr_err("Registation of %s failed!\n", name);
1095 pr_err("Registration of %s failed!\n", name);
1096 err = PTR_ERR(dev);
1097 }
1098 }
1099
1100 num_lmc = OCTEON_IS_MODEL(OCTEON_CN68XX) ? 4 :
1101 (OCTEON_IS_MODEL(OCTEON_CN56XX) ? 2 : 1);
1102 for (i = 0; i < num_lmc; i++) {
1103 dev = platform_device_register_simple("octeon_lmc_edac",
1104 i, NULL, 0);
1105 if (IS_ERR(dev)) {
1096 err = PTR_ERR(dev);
1097 }
1098 }
1099
1100 num_lmc = OCTEON_IS_MODEL(OCTEON_CN68XX) ? 4 :
1101 (OCTEON_IS_MODEL(OCTEON_CN56XX) ? 2 : 1);
1102 for (i = 0; i < num_lmc; i++) {
1103 dev = platform_device_register_simple("octeon_lmc_edac",
1104 i, NULL, 0);
1105 if (IS_ERR(dev)) {
1106 pr_err("Registation of octeon_lmc_edac %d failed!\n", i);
1106 pr_err("Registration of octeon_lmc_edac %d failed!\n", i);
1107 err = PTR_ERR(dev);
1108 }
1109 }
1110
1111 return err;
1112}
1113device_initcall(edac_devinit);
1114

--- 26 unchanged lines hidden ---
1107 err = PTR_ERR(dev);
1108 }
1109 }
1110
1111 return err;
1112}
1113device_initcall(edac_devinit);
1114

--- 26 unchanged lines hidden ---