linux/generic: add a missing symbol. (thank you kaloz)
[openwrt.git] / target / linux / sibyte / patches / 105-sibyte_hwmon.patch
1 --- a/arch/mips/sibyte/swarm/swarm-i2c.c
2 +++ b/arch/mips/sibyte/swarm/swarm-i2c.c
3 @@ -13,6 +13,11 @@
4 #include <linux/init.h>
5 #include <linux/kernel.h>
6
7 +static struct i2c_board_info swarm_i2c_info0[] __initdata = {
8 + {
9 + I2C_BOARD_INFO("lm90", 0x2a),
10 + },
11 +};
12
13 static struct i2c_board_info swarm_i2c_info1[] __initdata = {
14 {
15 @@ -24,6 +29,8 @@ static int __init swarm_i2c_init(void)
16 {
17 int err;
18
19 + err = i2c_register_board_info(0, swarm_i2c_info0,
20 + ARRAY_SIZE(swarm_i2c_info0));
21 err = i2c_register_board_info(1, swarm_i2c_info1,
22 ARRAY_SIZE(swarm_i2c_info1));
23 if (err < 0)
This page took 0.038474 seconds and 5 git commands to generate.