mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 13:21:32 +02:00
810339235c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16470 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
607 B
Diff
24 lines
607 B
Diff
--- 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)
|