mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
[media] i2c: adv7183: use module_i2c_driver to simplify the code
Use the module_i2c_driver() macro to make the code smaller and a bit simpler. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Scott Jiang <scott.jiang.linux@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
9ac1510407
commit
01aea0bfd8
1 changed files with 1 additions and 12 deletions
|
@ -681,18 +681,7 @@ static struct i2c_driver adv7183_driver = {
|
||||||
.id_table = adv7183_id,
|
.id_table = adv7183_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
static __init int adv7183_init(void)
|
module_i2c_driver(adv7183_driver);
|
||||||
{
|
|
||||||
return i2c_add_driver(&adv7183_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static __exit void adv7183_exit(void)
|
|
||||||
{
|
|
||||||
i2c_del_driver(&adv7183_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(adv7183_init);
|
|
||||||
module_exit(adv7183_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Analog Devices ADV7183 video decoder driver");
|
MODULE_DESCRIPTION("Analog Devices ADV7183 video decoder driver");
|
||||||
MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");
|
MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");
|
||||||
|
|
Loading…
Reference in a new issue