diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 10:49:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-05-12 10:49:26 +0000 |
commit | fd651daa4baa64c78555a1afe128bdd762e3765f (patch) | |
tree | de455b703c3420f678178c9776d30c21146bc1bf /target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch | |
parent | 4f6acae5f796b90364ebccdee3121520545b4404 (diff) | |
download | upstream-fd651daa4baa64c78555a1afe128bdd762e3765f.tar.gz upstream-fd651daa4baa64c78555a1afe128bdd762e3765f.tar.bz2 upstream-fd651daa4baa64c78555a1afe128bdd762e3765f.zip |
sibyte: add 3.3 support
SVN-Revision: 31680
Diffstat (limited to 'target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch')
-rw-r--r-- | target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch b/target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch new file mode 100644 index 0000000000..93dd4230d5 --- /dev/null +++ b/target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch @@ -0,0 +1,23 @@ +--- a/arch/mips/sibyte/swarm/swarm-i2c.c ++++ b/arch/mips/sibyte/swarm/swarm-i2c.c +@@ -13,6 +13,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 = { + { +@@ -24,6 +29,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) |