media: staging: atomisp: Use module_i2c_driver() macro
This is done using coccinelle semantic patch:
//<smpl>
@a@
identifier f, x;
@@
-static f(...) { return i2c_add_driver(&x); }
@b depends on a@
identifier e, a.x;
@@
-static e(...) { i2c_del_driver(&x); }
@c depends on a && b@
identifier a.f;
declarer name module_init;
@@
-module_init(f);
@d depends on a && b && c@
identifier b.e, a.x;
declarer name module_exit;
declarer name module_i2c_driver;
@@
-module_exit(e);
+module_i2c_driver(x);
//</smpl>
Signed-off-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by:
Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by:
Mauro Carvalho Chehab <mchehab@s-opensource.com>
Loading
Please sign in to comment