14 #include <linux/errno.h>
15 #include <linux/kernel.h>
16 #include <linux/pci.h>
18 #include <linux/i2c.h>
20 #ifdef CONFIG_I2C_BOARDINFO
25 struct i2c_driver_device {
30 static struct i2c_driver_device i2c_devices[]
__initdata = {
31 {
"dallas,ds1338",
"ds1338"},
39 for (i = 0; i <
ARRAY_SIZE(i2c_devices); i++) {
50 static int __init pasemi_register_i2c_devices(
void)
58 adap_node = pci_device_to_OF_node(pdev);
70 if (!addr || len <
sizeof(
int) ||
71 *addr > (1 << 10) - 1) {
73 "pasemi_register_i2c_devices: "
74 "invalid i2c device entry\n");
82 if (find_i2c_driver(node, &info) < 0)