Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / arch / mips / mti-sead3 / sead3-i2c-dev.c
blobeca0b53a71ddc3db8d188ba80370a476d99ab74d
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
7 */
8 #include <linux/init.h>
9 #include <linux/i2c.h>
11 static struct i2c_board_info __initdata sead3_i2c_devices[] = {
13 I2C_BOARD_INFO("adt7476", 0x2c),
14 .irq = 0,
17 I2C_BOARD_INFO("m41t80", 0x68),
18 .irq = 0,
22 static int __init sead3_i2c_init(void)
24 int err;
26 err = i2c_register_board_info(0, sead3_i2c_devices,
27 ARRAY_SIZE(sead3_i2c_devices));
28 if (err < 0)
29 pr_err("sead3-i2c-dev: cannot register board I2C devices\n");
30 return err;
33 arch_initcall(sead3_i2c_init);