Example #1
0
static int __init wis_ov7640_init(void)
{
	int r;

	r = i2c_add_driver(&wis_ov7640_driver);
	if (r < 0)
		return r;
	return wis_i2c_add_driver(wis_ov7640_driver.id, wis_ov7640_detect);
}
static int __init s2250_init(void)
{
	int r;

	r = s2250loader_init();
	if (r < 0)
		return r;

	r = i2c_add_driver(&s2250_driver);
	if (r < 0)
		return r;
	return wis_i2c_add_driver(s2250_driver.id, s2250_detect);
}