diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-06-15 07:11:22 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-06-15 07:11:22 +0000 |
commit | d6ced93638d2660ab7dc3e82a257f5f5a77e9d2c (patch) | |
tree | c501d8abb66b94b2e9d976f1df049cbca7e3b650 /target/linux/sibyte/patches/105-sibyte_hwmon.patch | |
parent | f898e77351e671fbc66aa7317faa3999736eb324 (diff) | |
download | upstream-d6ced93638d2660ab7dc3e82a257f5f5a77e9d2c.tar.gz upstream-d6ced93638d2660ab7dc3e82a257f5f5a77e9d2c.tar.bz2 upstream-d6ced93638d2660ab7dc3e82a257f5f5a77e9d2c.zip |
sibyte cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16470 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sibyte/patches/105-sibyte_hwmon.patch')
-rw-r--r-- | target/linux/sibyte/patches/105-sibyte_hwmon.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/sibyte/patches/105-sibyte_hwmon.patch b/target/linux/sibyte/patches/105-sibyte_hwmon.patch new file mode 100644 index 0000000000..a5657b97b9 --- /dev/null +++ b/target/linux/sibyte/patches/105-sibyte_hwmon.patch @@ -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) |