treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / sibyte / swarm / swarm-i2c.c
blob1ed2dc96d4618fd6b699983631d3a8e3ee56ad4b
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Broadcom BCM91250A (SWARM), etc. I2C platform setup.
5 * Copyright (c) 2008 Maciej W. Rozycki
6 */
8 #include <linux/i2c.h>
9 #include <linux/init.h>
10 #include <linux/kernel.h>
13 static struct i2c_board_info swarm_i2c_info1[] __initdata = {
15 I2C_BOARD_INFO("m41t81", 0x68),
19 static int __init swarm_i2c_init(void)
21 int err;
23 err = i2c_register_board_info(1, swarm_i2c_info1,
24 ARRAY_SIZE(swarm_i2c_info1));
25 if (err < 0)
26 printk(KERN_ERR
27 "swarm-i2c: cannot register board I2C devices\n");
28 return err;
31 arch_initcall(swarm_i2c_init);