parent
956c268381
commit
1e470c10f3
@ -0,0 +1,37 @@ |
||||
[PATCH] Remove SiByte simulator option
|
||||
|
||||
This patch removes the SiByte simulation Kconfig option, which only
|
||||
modified a printk.
|
||||
|
||||
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
|
||||
|
||||
--- a/arch/mips/sibyte/Kconfig
|
||||
+++ b/arch/mips/sibyte/Kconfig
|
||||
@@ -128,13 +128,6 @@ config SIBYTE_ENABLE_LDT_IF_PCI
|
||||
bool
|
||||
select SIBYTE_HAS_LDT if PCI
|
||||
|
||||
-config SIMULATION
|
||||
- bool "Running under simulation"
|
||||
- depends on SIBYTE_SB1xxx_SOC
|
||||
- help
|
||||
- Build a kernel suitable for running under the GDB simulator.
|
||||
- Primarily adjusts the kernel's notion of time.
|
||||
-
|
||||
config SB1_CEX_ALWAYS_FATAL
|
||||
bool "All cache exceptions considered fatal (no recovery attempted)"
|
||||
depends on SIBYTE_SB1xxx_SOC
|
||||
--- a/arch/mips/sibyte/swarm/setup.c
|
||||
+++ b/arch/mips/sibyte/swarm/setup.c
|
||||
@@ -137,11 +137,7 @@ void __init plat_mem_setup(void)
|
||||
swarm_rtc_type = RTC_M4LT81;
|
||||
|
||||
printk("This kernel optimized for "
|
||||
-#ifdef CONFIG_SIMULATION
|
||||
- "simulation"
|
||||
-#else
|
||||
"board"
|
||||
-#endif
|
||||
" runs "
|
||||
#ifdef CONFIG_SIBYTE_CFE
|
||||
"with"
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@ |
||||
--- a/arch/mips/sibyte/swarm/swarm-i2c.c
|
||||
+++ b/arch/mips/sibyte/swarm/swarm-i2c.c
|
||||
@@ -15,6 +15,11 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
+static struct i2c_board_info swarm_i2c_info0[] __initdata = {
|
||||
+ {
|
||||
+ I2C_BOARD_INFO("lm90", 0x2a),
|
||||
+ },
|
||||
+};
|
||||
|
||||
static struct i2c_board_info swarm_i2c_info1[] __initdata = {
|
||||
{
|
||||
@@ -26,6 +31,8 @@ static int __init swarm_i2c_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
+ err = i2c_register_board_info(0, swarm_i2c_info0,
|
||||
+ ARRAY_SIZE(swarm_i2c_info0));
|
||||
err = i2c_register_board_info(1, swarm_i2c_info1,
|
||||
ARRAY_SIZE(swarm_i2c_info1));
|
||||
if (err < 0)
|
Loading…
Reference in new issue