I2c-gpio.c (drivers\i2c\busses):subsys_initcall(i2c_gpio_init);
I2c-gpio.c是模拟I2C总线的驱动。
static int __init i2c_gpio_init(void)
{
int ret;
ret = platform_driver_register(&i2c_gpio_driver);
if (ret)
printk(KERN_ERR "i2c-gpio: probe failed: %d\n", ret);
return ret;
}