[media] convert drivers/media/* to use module_i2c_driver()

This patch converts the drivers in drivers/media/* to use the
module_i2_driver() macro which makes the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Heungjun Kim <riverful.kim@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Andrew Chew <achew@nvidia.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: Johannes Obermaier <johannes.obermaier@gmail.com>
Cc: Steven Toth <stoth@kernellabs.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Axel Lin 2012-02-12 06:56:32 -03:00 committed by Mauro Carvalho Chehab
parent a2d2b25ce6
commit c6e8d86fff
73 changed files with 75 additions and 940 deletions

View File

@ -839,15 +839,4 @@ static struct i2c_driver au8522_driver = {
.id_table = au8522_id,
};
static __init int init_au8522(void)
{
return i2c_add_driver(&au8522_driver);
}
static __exit void exit_au8522(void)
{
i2c_del_driver(&au8522_driver);
}
module_init(init_au8522);
module_exit(exit_au8522);
module_i2c_driver(au8522_driver);

View File

@ -575,21 +575,7 @@ static struct i2c_driver tea5764_i2c_driver = {
.id_table = tea5764_id,
};
/* init the driver */
static int __init tea5764_init(void)
{
int ret = i2c_add_driver(&tea5764_i2c_driver);
printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ": "
DRIVER_DESC "\n");
return ret;
}
/* cleanup the driver */
static void __exit tea5764_exit(void)
{
i2c_del_driver(&tea5764_i2c_driver);
}
module_i2c_driver(tea5764_i2c_driver);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
@ -600,6 +586,3 @@ module_param(use_xtal, int, 0);
MODULE_PARM_DESC(use_xtal, "Chip have a xtal connected in board");
module_param(radio_nr, int, 0);
MODULE_PARM_DESC(radio_nr, "video4linux device number to use");
module_init(tea5764_init);
module_exit(tea5764_exit);

View File

@ -434,18 +434,7 @@ static struct i2c_driver saa7706h_driver = {
.id_table = saa7706h_id,
};
static __init int saa7706h_init(void)
{
return i2c_add_driver(&saa7706h_driver);
}
static __exit void saa7706h_exit(void)
{
i2c_del_driver(&saa7706h_driver);
}
module_init(saa7706h_init);
module_exit(saa7706h_exit);
module_i2c_driver(saa7706h_driver);
MODULE_DESCRIPTION("SAA7706H Car Radio DSP driver");
MODULE_AUTHOR("Mocean Laboratories");

View File

@ -539,33 +539,7 @@ static struct i2c_driver si470x_i2c_driver = {
.id_table = si470x_i2c_id,
};
/**************************************************************************
* Module Interface
**************************************************************************/
/*
* si470x_i2c_init - module init
*/
static int __init si470x_i2c_init(void)
{
printk(KERN_INFO DRIVER_DESC ", Version " DRIVER_VERSION "\n");
return i2c_add_driver(&si470x_i2c_driver);
}
/*
* si470x_i2c_exit - module exit
*/
static void __exit si470x_i2c_exit(void)
{
i2c_del_driver(&si470x_i2c_driver);
}
module_init(si470x_i2c_init);
module_exit(si470x_i2c_exit);
module_i2c_driver(si470x_i2c_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR(DRIVER_AUTHOR);

View File

@ -2106,17 +2106,4 @@ static struct i2c_driver si4713_i2c_driver = {
.id_table = si4713_id,
};
/* Module Interface */
static int __init si4713_module_init(void)
{
return i2c_add_driver(&si4713_i2c_driver);
}
static void __exit si4713_module_exit(void)
{
i2c_del_driver(&si4713_i2c_driver);
}
module_init(si4713_module_init);
module_exit(si4713_module_exit);
module_i2c_driver(si4713_i2c_driver);

View File

@ -215,20 +215,8 @@ static struct i2c_driver tef6862_driver = {
.id_table = tef6862_id,
};
static __init int tef6862_init(void)
{
return i2c_add_driver(&tef6862_driver);
}
static __exit void tef6862_exit(void)
{
i2c_del_driver(&tef6862_driver);
}
module_init(tef6862_init);
module_exit(tef6862_exit);
module_i2c_driver(tef6862_driver);
MODULE_DESCRIPTION("TEF6862 Car Radio Enhanced Selectivity Tuner");
MODULE_AUTHOR("Mocean Laboratories");
MODULE_LICENSE("GPL v2");

View File

@ -482,24 +482,7 @@ static struct i2c_driver adp1653_i2c_driver = {
.id_table = adp1653_id_table,
};
static int __init adp1653_init(void)
{
int rval;
rval = i2c_add_driver(&adp1653_i2c_driver);
if (rval)
printk(KERN_ALERT "%s: failed at i2c_add_driver\n", __func__);
return rval;
}
static void __exit adp1653_exit(void)
{
i2c_del_driver(&adp1653_i2c_driver);
}
module_init(adp1653_init);
module_exit(adp1653_exit);
module_i2c_driver(adp1653_i2c_driver);
MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>");
MODULE_DESCRIPTION("Analog Devices ADP1653 LED flash driver");

View File

@ -407,15 +407,4 @@ static struct i2c_driver adv7170_driver = {
.id_table = adv7170_id,
};
static __init int init_adv7170(void)
{
return i2c_add_driver(&adv7170_driver);
}
static __exit void exit_adv7170(void)
{
i2c_del_driver(&adv7170_driver);
}
module_init(init_adv7170);
module_exit(exit_adv7170);
module_i2c_driver(adv7170_driver);

View File

@ -457,15 +457,4 @@ static struct i2c_driver adv7175_driver = {
.id_table = adv7175_id,
};
static __init int init_adv7175(void)
{
return i2c_add_driver(&adv7175_driver);
}
static __exit void exit_adv7175(void)
{
i2c_del_driver(&adv7175_driver);
}
module_init(init_adv7175);
module_exit(exit_adv7175);
module_i2c_driver(adv7175_driver);

View File

@ -444,20 +444,8 @@ static struct i2c_driver adv7180_driver = {
.id_table = adv7180_id,
};
static __init int adv7180_init(void)
{
return i2c_add_driver(&adv7180_driver);
}
static __exit void adv7180_exit(void)
{
i2c_del_driver(&adv7180_driver);
}
module_init(adv7180_init);
module_exit(adv7180_exit);
module_i2c_driver(adv7180_driver);
MODULE_DESCRIPTION("Analog Devices ADV7180 video decoder driver");
MODULE_AUTHOR("Mocean Laboratories");
MODULE_LICENSE("GPL v2");

View File

@ -475,15 +475,4 @@ static struct i2c_driver adv7343_driver = {
.id_table = adv7343_id,
};
static __init int init_adv7343(void)
{
return i2c_add_driver(&adv7343_driver);
}
static __exit void exit_adv7343(void)
{
i2c_del_driver(&adv7343_driver);
}
module_init(init_adv7343);
module_exit(exit_adv7343);
module_i2c_driver(adv7343_driver);

View File

@ -352,18 +352,7 @@ static struct i2c_driver ak881x_i2c_driver = {
.id_table = ak881x_id,
};
static int __init ak881x_module_init(void)
{
return i2c_add_driver(&ak881x_i2c_driver);
}
static void __exit ak881x_module_exit(void)
{
i2c_del_driver(&ak881x_i2c_driver);
}
module_init(ak881x_module_init);
module_exit(ak881x_module_exit);
module_i2c_driver(ak881x_i2c_driver);
MODULE_DESCRIPTION("TV-output driver for ak8813/ak8814");
MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");

View File

@ -881,24 +881,7 @@ static struct i2c_driver as3645a_i2c_driver = {
.id_table = as3645a_id_table,
};
static int __init as3645a_init(void)
{
int rval;
rval = i2c_add_driver(&as3645a_i2c_driver);
if (rval)
pr_err("%s: Failed to register the driver\n", AS3645A_NAME);
return rval;
}
static void __exit as3645a_exit(void)
{
i2c_del_driver(&as3645a_i2c_driver);
}
module_init(as3645a_init);
module_exit(as3645a_exit);
module_i2c_driver(as3645a_i2c_driver);
MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>");
MODULE_DESCRIPTION("LED flash driver for AS3645A, LM3555 and their clones");

View File

@ -514,15 +514,4 @@ static struct i2c_driver bt819_driver = {
.id_table = bt819_id,
};
static __init int init_bt819(void)
{
return i2c_add_driver(&bt819_driver);
}
static __exit void exit_bt819(void)
{
i2c_del_driver(&bt819_driver);
}
module_init(init_bt819);
module_exit(exit_bt819);
module_i2c_driver(bt819_driver);

View File

@ -270,15 +270,4 @@ static struct i2c_driver bt856_driver = {
.id_table = bt856_id,
};
static __init int init_bt856(void)
{
return i2c_add_driver(&bt856_driver);
}
static __exit void exit_bt856(void)
{
i2c_del_driver(&bt856_driver);
}
module_init(init_bt856);
module_exit(exit_bt856);
module_i2c_driver(bt856_driver);

View File

@ -240,15 +240,4 @@ static struct i2c_driver bt866_driver = {
.id_table = bt866_id,
};
static __init int init_bt866(void)
{
return i2c_add_driver(&bt866_driver);
}
static __exit void exit_bt866(void)
{
i2c_del_driver(&bt866_driver);
}
module_init(init_bt866);
module_exit(exit_bt866);
module_i2c_driver(bt866_driver);

View File

@ -249,15 +249,4 @@ static struct i2c_driver cs5345_driver = {
.id_table = cs5345_id,
};
static __init int init_cs5345(void)
{
return i2c_add_driver(&cs5345_driver);
}
static __exit void exit_cs5345(void)
{
i2c_del_driver(&cs5345_driver);
}
module_init(init_cs5345);
module_exit(exit_cs5345);
module_i2c_driver(cs5345_driver);

View File

@ -248,15 +248,4 @@ static struct i2c_driver cs53l32a_driver = {
.id_table = cs53l32a_id,
};
static __init int init_cs53l32a(void)
{
return i2c_add_driver(&cs53l32a_driver);
}
static __exit void exit_cs53l32a(void)
{
i2c_del_driver(&cs53l32a_driver);
}
module_init(init_cs53l32a);
module_exit(exit_cs53l32a);
module_i2c_driver(cs53l32a_driver);

View File

@ -5301,15 +5301,4 @@ static struct i2c_driver cx25840_driver = {
.id_table = cx25840_id,
};
static __init int init_cx25840(void)
{
return i2c_add_driver(&cx25840_driver);
}
static __exit void exit_cx25840(void)
{
i2c_del_driver(&cx25840_driver);
}
module_init(init_cx25840);
module_exit(exit_cx25840);
module_i2c_driver(cx25840_driver);

View File

@ -468,18 +468,7 @@ static struct i2c_driver imx074_i2c_driver = {
.id_table = imx074_id,
};
static int __init imx074_mod_init(void)
{
return i2c_add_driver(&imx074_i2c_driver);
}
static void __exit imx074_mod_exit(void)
{
i2c_del_driver(&imx074_i2c_driver);
}
module_init(imx074_mod_init);
module_exit(imx074_mod_exit);
module_i2c_driver(imx074_i2c_driver);
MODULE_DESCRIPTION("Sony IMX074 Camera driver");
MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");

View File

@ -387,15 +387,4 @@ static struct i2c_driver indycam_driver = {
.id_table = indycam_id,
};
static __init int init_indycam(void)
{
return i2c_add_driver(&indycam_driver);
}
static __exit void exit_indycam(void)
{
i2c_del_driver(&indycam_driver);
}
module_init(init_indycam);
module_exit(exit_indycam);
module_i2c_driver(indycam_driver);

View File

@ -471,7 +471,7 @@ static const struct i2c_device_id ir_kbd_id[] = {
{ }
};
static struct i2c_driver driver = {
static struct i2c_driver ir_kbd_driver = {
.driver = {
.name = "ir-kbd-i2c",
},
@ -480,21 +480,10 @@ static struct i2c_driver driver = {
.id_table = ir_kbd_id,
};
module_i2c_driver(ir_kbd_driver);
/* ----------------------------------------------------------------------- */
MODULE_AUTHOR("Gerd Knorr, Michal Kochanowicz, Christoph Bartelmus, Ulrich Mueller");
MODULE_DESCRIPTION("input driver for i2c IR remote controls");
MODULE_LICENSE("GPL");
static int __init ir_init(void)
{
return i2c_add_driver(&driver);
}
static void __exit ir_fini(void)
{
i2c_del_driver(&driver);
}
module_init(ir_init);
module_exit(ir_fini);

View File

@ -721,15 +721,4 @@ static struct i2c_driver ks0127_driver = {
.id_table = ks0127_id,
};
static __init int init_ks0127(void)
{
return i2c_add_driver(&ks0127_driver);
}
static __exit void exit_ks0127(void)
{
i2c_del_driver(&ks0127_driver);
}
module_init(init_ks0127);
module_exit(exit_ks0127);
module_i2c_driver(ks0127_driver);

View File

@ -213,15 +213,4 @@ static struct i2c_driver m52790_driver = {
.id_table = m52790_id,
};
static __init int init_m52790(void)
{
return i2c_add_driver(&m52790_driver);
}
static __exit void exit_m52790(void)
{
i2c_del_driver(&m52790_driver);
}
module_init(init_m52790);
module_exit(exit_m52790);
module_i2c_driver(m52790_driver);

View File

@ -1057,18 +1057,7 @@ static struct i2c_driver m5mols_i2c_driver = {
.id_table = m5mols_id,
};
static int __init m5mols_mod_init(void)
{
return i2c_add_driver(&m5mols_i2c_driver);
}
static void __exit m5mols_mod_exit(void)
{
i2c_del_driver(&m5mols_i2c_driver);
}
module_init(m5mols_mod_init);
module_exit(m5mols_mod_exit);
module_i2c_driver(m5mols_i2c_driver);
MODULE_AUTHOR("HeungJun Kim <riverful.kim@samsung.com>");
MODULE_AUTHOR("Dongsoo Kim <dongsoo45.kim@samsung.com>");

View File

@ -881,18 +881,7 @@ static struct i2c_driver msp_driver = {
.id_table = msp_id,
};
static __init int init_msp(void)
{
return i2c_add_driver(&msp_driver);
}
static __exit void exit_msp(void)
{
i2c_del_driver(&msp_driver);
}
module_init(init_msp);
module_exit(exit_msp);
module_i2c_driver(msp_driver);
/*
* Overrides for Emacs so that we follow Linus's tabbing style.

View File

@ -730,18 +730,7 @@ static struct i2c_driver mt9m001_i2c_driver = {
.id_table = mt9m001_id,
};
static int __init mt9m001_mod_init(void)
{
return i2c_add_driver(&mt9m001_i2c_driver);
}
static void __exit mt9m001_mod_exit(void)
{
i2c_del_driver(&mt9m001_i2c_driver);
}
module_init(mt9m001_mod_init);
module_exit(mt9m001_mod_exit);
module_i2c_driver(mt9m001_i2c_driver);
MODULE_DESCRIPTION("Micron MT9M001 Camera driver");
MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>");

View File

@ -1008,18 +1008,7 @@ static struct i2c_driver mt9m111_i2c_driver = {
.id_table = mt9m111_id,
};
static int __init mt9m111_mod_init(void)
{
return i2c_add_driver(&mt9m111_i2c_driver);
}
static void __exit mt9m111_mod_exit(void)
{
i2c_del_driver(&mt9m111_i2c_driver);
}
module_init(mt9m111_mod_init);
module_exit(mt9m111_mod_exit);
module_i2c_driver(mt9m111_i2c_driver);
MODULE_DESCRIPTION("Micron/Aptina MT9M111/MT9M112/MT9M131 Camera driver");
MODULE_AUTHOR("Robert Jarzmik");

View File

@ -945,18 +945,7 @@ static struct i2c_driver mt9p031_i2c_driver = {
.id_table = mt9p031_id,
};
static int __init mt9p031_mod_init(void)
{
return i2c_add_driver(&mt9p031_i2c_driver);
}
static void __exit mt9p031_mod_exit(void)
{
i2c_del_driver(&mt9p031_i2c_driver);
}
module_init(mt9p031_mod_init);
module_exit(mt9p031_mod_exit);
module_i2c_driver(mt9p031_i2c_driver);
MODULE_DESCRIPTION("Aptina MT9P031 Camera driver");
MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>");

View File

@ -817,18 +817,7 @@ static struct i2c_driver mt9t001_driver = {
.id_table = mt9t001_id,
};
static int __init mt9t001_init(void)
{
return i2c_add_driver(&mt9t001_driver);
}
static void __exit mt9t001_exit(void)
{
i2c_del_driver(&mt9t001_driver);
}
module_init(mt9t001_init);
module_exit(mt9t001_exit);
module_i2c_driver(mt9t001_driver);
MODULE_DESCRIPTION("Aptina (Micron) MT9T001 Camera driver");
MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>");

View File

@ -850,18 +850,7 @@ static struct i2c_driver mt9t031_i2c_driver = {
.id_table = mt9t031_id,
};
static int __init mt9t031_mod_init(void)
{
return i2c_add_driver(&mt9t031_i2c_driver);
}
static void __exit mt9t031_mod_exit(void)
{
i2c_del_driver(&mt9t031_i2c_driver);
}
module_init(mt9t031_mod_init);
module_exit(mt9t031_mod_exit);
module_i2c_driver(mt9t031_i2c_driver);
MODULE_DESCRIPTION("Micron MT9T031 Camera driver");
MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>");

View File

@ -1117,21 +1117,7 @@ static struct i2c_driver mt9t112_i2c_driver = {
.id_table = mt9t112_id,
};
/************************************************************************
module function
************************************************************************/
static int __init mt9t112_module_init(void)
{
return i2c_add_driver(&mt9t112_i2c_driver);
}
static void __exit mt9t112_module_exit(void)
{
i2c_del_driver(&mt9t112_i2c_driver);
}
module_init(mt9t112_module_init);
module_exit(mt9t112_module_exit);
module_i2c_driver(mt9t112_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for mt9t112");
MODULE_AUTHOR("Kuninori Morimoto");

View File

@ -709,15 +709,4 @@ static struct i2c_driver mt9v011_driver = {
.id_table = mt9v011_id,
};
static __init int init_mt9v011(void)
{
return i2c_add_driver(&mt9v011_driver);
}
static __exit void exit_mt9v011(void)
{
i2c_del_driver(&mt9v011_driver);
}
module_init(init_mt9v011);
module_exit(exit_mt9v011);
module_i2c_driver(mt9v011_driver);

View File

@ -872,18 +872,7 @@ static struct i2c_driver mt9v022_i2c_driver = {
.id_table = mt9v022_id,
};
static int __init mt9v022_mod_init(void)
{
return i2c_add_driver(&mt9v022_i2c_driver);
}
static void __exit mt9v022_mod_exit(void)
{
i2c_del_driver(&mt9v022_i2c_driver);
}
module_init(mt9v022_mod_init);
module_exit(mt9v022_mod_exit);
module_i2c_driver(mt9v022_i2c_driver);
MODULE_DESCRIPTION("Micron MT9V022 Camera driver");
MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>");

View File

@ -756,18 +756,7 @@ static struct i2c_driver mt9v032_driver = {
.id_table = mt9v032_id,
};
static int __init mt9v032_init(void)
{
return i2c_add_driver(&mt9v032_driver);
}
static void __exit mt9v032_exit(void)
{
i2c_del_driver(&mt9v032_driver);
}
module_init(mt9v032_init);
module_exit(mt9v032_exit);
module_i2c_driver(mt9v032_driver);
MODULE_DESCRIPTION("Aptina MT9V032 Camera driver");
MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>");

View File

@ -844,18 +844,7 @@ static struct i2c_driver noon010_i2c_driver = {
.id_table = noon010_id,
};
static int __init noon010_init(void)
{
return i2c_add_driver(&noon010_i2c_driver);
}
static void __exit noon010_exit(void)
{
i2c_del_driver(&noon010_i2c_driver);
}
module_init(noon010_init);
module_exit(noon010_exit);
module_i2c_driver(noon010_i2c_driver);
MODULE_DESCRIPTION("Siliconfile NOON010PC30 camera driver");
MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");

View File

@ -1103,21 +1103,7 @@ static struct i2c_driver ov2640_i2c_driver = {
.id_table = ov2640_id,
};
/*
* Module functions
*/
static int __init ov2640_module_init(void)
{
return i2c_add_driver(&ov2640_i2c_driver);
}
static void __exit ov2640_module_exit(void)
{
i2c_del_driver(&ov2640_i2c_driver);
}
module_init(ov2640_module_init);
module_exit(ov2640_module_exit);
module_i2c_driver(ov2640_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for Omni Vision 2640 sensor");
MODULE_AUTHOR("Alberto Panizzo");

View File

@ -1068,18 +1068,7 @@ static struct i2c_driver ov5642_i2c_driver = {
.id_table = ov5642_id,
};
static int __init ov5642_mod_init(void)
{
return i2c_add_driver(&ov5642_i2c_driver);
}
static void __exit ov5642_mod_exit(void)
{
i2c_del_driver(&ov5642_i2c_driver);
}
module_init(ov5642_mod_init);
module_exit(ov5642_mod_exit);
module_i2c_driver(ov5642_i2c_driver);
MODULE_DESCRIPTION("Omnivision OV5642 Camera driver");
MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>");

View File

@ -1046,18 +1046,7 @@ static struct i2c_driver ov6650_i2c_driver = {
.id_table = ov6650_id,
};
static int __init ov6650_module_init(void)
{
return i2c_add_driver(&ov6650_i2c_driver);
}
static void __exit ov6650_module_exit(void)
{
i2c_del_driver(&ov6650_i2c_driver);
}
module_init(ov6650_module_init);
module_exit(ov6650_module_exit);
module_i2c_driver(ov6650_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV6650");
MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>");

View File

@ -1583,15 +1583,4 @@ static struct i2c_driver ov7670_driver = {
.id_table = ov7670_id,
};
static __init int init_ov7670(void)
{
return i2c_add_driver(&ov7670_driver);
}
static __exit void exit_ov7670(void)
{
i2c_del_driver(&ov7670_driver);
}
module_init(init_ov7670);
module_exit(exit_ov7670);
module_i2c_driver(ov7670_driver);

View File

@ -1123,22 +1123,7 @@ static struct i2c_driver ov772x_i2c_driver = {
.id_table = ov772x_id,
};
/*
* module function
*/
static int __init ov772x_module_init(void)
{
return i2c_add_driver(&ov772x_i2c_driver);
}
static void __exit ov772x_module_exit(void)
{
i2c_del_driver(&ov772x_i2c_driver);
}
module_init(ov772x_module_init);
module_exit(ov772x_module_exit);
module_i2c_driver(ov772x_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for ov772x");
MODULE_AUTHOR("Kuninori Morimoto");

View File

@ -738,18 +738,7 @@ static struct i2c_driver ov9640_i2c_driver = {
.id_table = ov9640_id,
};
static int __init ov9640_module_init(void)
{
return i2c_add_driver(&ov9640_i2c_driver);
}
static void __exit ov9640_module_exit(void)
{
i2c_del_driver(&ov9640_i2c_driver);
}
module_init(ov9640_module_init);
module_exit(ov9640_module_exit);
module_i2c_driver(ov9640_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV96xx");
MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>");

View File

@ -998,18 +998,7 @@ static struct i2c_driver ov9740_i2c_driver = {
.id_table = ov9740_id,
};
static int __init ov9740_module_init(void)
{
return i2c_add_driver(&ov9740_i2c_driver);
}
static void __exit ov9740_module_exit(void)
{
i2c_del_driver(&ov9740_i2c_driver);
}
module_init(ov9740_module_init);
module_exit(ov9740_module_exit);
module_i2c_driver(ov9740_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV9740");
MODULE_AUTHOR("Andrew Chew <achew@nvidia.com>");

View File

@ -1407,18 +1407,7 @@ static struct i2c_driver rj54n1_i2c_driver = {
.id_table = rj54n1_id,
};
static int __init rj54n1_mod_init(void)
{
return i2c_add_driver(&rj54n1_i2c_driver);
}
static void __exit rj54n1_mod_exit(void)
{
i2c_del_driver(&rj54n1_i2c_driver);
}
module_init(rj54n1_mod_init);
module_exit(rj54n1_mod_exit);
module_i2c_driver(rj54n1_i2c_driver);
MODULE_DESCRIPTION("Sharp RJ54N1CB0C Camera driver");
MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");

View File

@ -1663,18 +1663,7 @@ static struct i2c_driver s5k6aa_i2c_driver = {
.id_table = s5k6aa_id,
};
static int __init s5k6aa_init(void)
{
return i2c_add_driver(&s5k6aa_i2c_driver);
}
static void __exit s5k6aa_exit(void)
{
i2c_del_driver(&s5k6aa_i2c_driver);
}
module_init(s5k6aa_init);
module_exit(s5k6aa_exit);
module_i2c_driver(s5k6aa_i2c_driver);
MODULE_DESCRIPTION("Samsung S5K6AA(FX) SXGA camera driver");
MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");

View File

@ -175,14 +175,4 @@ static struct i2c_driver hdmiphy_driver = {
.id_table = hdmiphy_id,
};
static int __init hdmiphy_init(void)
{
return i2c_add_driver(&hdmiphy_driver);
}
module_init(hdmiphy_init);
static void __exit hdmiphy_exit(void)
{
i2c_del_driver(&hdmiphy_driver);
}
module_exit(hdmiphy_exit);
module_i2c_driver(hdmiphy_driver);

View File

@ -539,15 +539,4 @@ static struct i2c_driver saa6588_driver = {
.id_table = saa6588_id,
};
static __init int init_saa6588(void)
{
return i2c_add_driver(&saa6588_driver);
}
static __exit void exit_saa6588(void)
{
i2c_del_driver(&saa6588_driver);
}
module_init(init_saa6588);
module_exit(exit_saa6588);
module_i2c_driver(saa6588_driver);

View File

@ -491,15 +491,4 @@ static struct i2c_driver saa7110_driver = {
.id_table = saa7110_id,
};
static __init int init_saa7110(void)
{
return i2c_add_driver(&saa7110_driver);
}
static __exit void exit_saa7110(void)
{
i2c_del_driver(&saa7110_driver);
}
module_init(init_saa7110);
module_exit(exit_saa7110);
module_i2c_driver(saa7110_driver);

View File

@ -1724,15 +1724,4 @@ static struct i2c_driver saa711x_driver = {
.id_table = saa711x_id,
};
static __init int init_saa711x(void)
{
return i2c_add_driver(&saa711x_driver);
}
static __exit void exit_saa711x(void)
{
i2c_del_driver(&saa711x_driver);
}
module_init(init_saa711x);
module_exit(exit_saa711x);
module_i2c_driver(saa711x_driver);

View File

@ -852,15 +852,4 @@ static struct i2c_driver saa7127_driver = {
.id_table = saa7127_id,
};
static __init int init_saa7127(void)
{
return i2c_add_driver(&saa7127_driver);
}
static __exit void exit_saa7127(void)
{
i2c_del_driver(&saa7127_driver);
}
module_init(init_saa7127);
module_exit(exit_saa7127);
module_i2c_driver(saa7127_driver);

View File

@ -1001,18 +1001,7 @@ static struct i2c_driver saa6752hs_driver = {
.id_table = saa6752hs_id,
};
static __init int init_saa6752hs(void)
{
return i2c_add_driver(&saa6752hs_driver);
}
static __exit void exit_saa6752hs(void)
{
i2c_del_driver(&saa6752hs_driver);
}
module_init(init_saa6752hs);
module_exit(exit_saa6752hs);
module_i2c_driver(saa6752hs_driver);
/*
* Overrides for Emacs so that we follow Linus's tabbing style.

View File

@ -1375,15 +1375,4 @@ static struct i2c_driver saa717x_driver = {
.id_table = saa717x_id,
};
static __init int init_saa717x(void)
{
return i2c_add_driver(&saa717x_driver);
}
static __exit void exit_saa717x(void)
{
i2c_del_driver(&saa717x_driver);
}
module_init(init_saa717x);
module_exit(exit_saa717x);
module_i2c_driver(saa717x_driver);

View File

@ -374,15 +374,4 @@ static struct i2c_driver saa7185_driver = {
.id_table = saa7185_id,
};
static __init int init_saa7185(void)
{
return i2c_add_driver(&saa7185_driver);
}
static __exit void exit_saa7185(void)
{
i2c_del_driver(&saa7185_driver);
}
module_init(init_saa7185);
module_exit(exit_saa7185);
module_i2c_driver(saa7185_driver);

View File

@ -656,15 +656,4 @@ static struct i2c_driver saa7191_driver = {
.id_table = saa7191_id,
};
static __init int init_saa7191(void)
{
return i2c_add_driver(&saa7191_driver);
}
static __exit void exit_saa7191(void)
{
i2c_del_driver(&saa7191_driver);
}
module_init(init_saa7191);
module_exit(exit_saa7191);
module_i2c_driver(saa7191_driver);

View File

@ -864,18 +864,7 @@ static struct i2c_driver sr030pc30_i2c_driver = {
.id_table = sr030pc30_id,
};
static int __init sr030pc30_init(void)
{
return i2c_add_driver(&sr030pc30_i2c_driver);
}
static void __exit sr030pc30_exit(void)
{
i2c_del_driver(&sr030pc30_i2c_driver);
}
module_init(sr030pc30_init);
module_exit(sr030pc30_exit);
module_i2c_driver(sr030pc30_i2c_driver);
MODULE_DESCRIPTION("Siliconfile SR030PC30 camera driver");
MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");

View File

@ -482,15 +482,4 @@ static struct i2c_driver tda7432_driver = {
.id_table = tda7432_id,
};
static __init int init_tda7432(void)
{
return i2c_add_driver(&tda7432_driver);
}
static __exit void exit_tda7432(void)
{
i2c_del_driver(&tda7432_driver);
}
module_init(init_tda7432);
module_exit(exit_tda7432);
module_i2c_driver(tda7432_driver);

View File

@ -208,15 +208,4 @@ static struct i2c_driver tda9840_driver = {
.id_table = tda9840_id,
};
static __init int init_tda9840(void)
{
return i2c_add_driver(&tda9840_driver);
}
static __exit void exit_tda9840(void)
{
i2c_del_driver(&tda9840_driver);
}
module_init(init_tda9840);
module_exit(exit_tda9840);
module_i2c_driver(tda9840_driver);

View File

@ -184,15 +184,4 @@ static struct i2c_driver tea6415c_driver = {
.id_table = tea6415c_id,
};
static __init int init_tea6415c(void)
{
return i2c_add_driver(&tea6415c_driver);
}
static __exit void exit_tea6415c(void)
{
i2c_del_driver(&tea6415c_driver);
}
module_init(init_tea6415c);
module_exit(exit_tea6415c);
module_i2c_driver(tea6415c_driver);

View File

@ -166,15 +166,4 @@ static struct i2c_driver tea6420_driver = {
.id_table = tea6420_id,
};
static __init int init_tea6420(void)
{
return i2c_add_driver(&tea6420_driver);
}
static __exit void exit_tea6420(void)
{
i2c_del_driver(&tea6420_driver);
}
module_init(init_tea6420);
module_exit(exit_tea6420);
module_i2c_driver(tea6420_driver);

View File

@ -137,16 +137,4 @@ static struct i2c_driver ths7303_driver = {
.id_table = ths7303_id,
};
static int __init ths7303_init(void)
{
return i2c_add_driver(&ths7303_driver);
}
static void __exit ths7303_exit(void)
{
i2c_del_driver(&ths7303_driver);
}
module_init(ths7303_init);
module_exit(ths7303_exit);
module_i2c_driver(ths7303_driver);

View File

@ -227,15 +227,4 @@ static struct i2c_driver tlv320aic23b_driver = {
.id_table = tlv320aic23b_id,
};
static __init int init_tlv320aic23b(void)
{
return i2c_add_driver(&tlv320aic23b_driver);
}
static __exit void exit_tlv320aic23b(void)
{
i2c_del_driver(&tlv320aic23b_driver);
}
module_init(init_tlv320aic23b);
module_exit(exit_tlv320aic23b);
module_i2c_driver(tlv320aic23b_driver);

View File

@ -1329,18 +1329,7 @@ static struct i2c_driver tuner_driver = {
.id_table = tuner_id,
};
static __init int init_tuner(void)
{
return i2c_add_driver(&tuner_driver);
}
static __exit void exit_tuner(void)
{
i2c_del_driver(&tuner_driver);
}
module_init(init_tuner);
module_exit(exit_tuner);
module_i2c_driver(tuner_driver);
MODULE_DESCRIPTION("device driver for various TV and TV+FM radio tuners");
MODULE_AUTHOR("Ralph Metzler, Gerd Knorr, Gunther Mayer");

View File

@ -2078,15 +2078,4 @@ static struct i2c_driver tvaudio_driver = {
.id_table = tvaudio_id,
};
static __init int init_tvaudio(void)
{
return i2c_add_driver(&tvaudio_driver);
}
static __exit void exit_tvaudio(void)
{
i2c_del_driver(&tvaudio_driver);
}
module_init(init_tvaudio);
module_exit(exit_tvaudio);
module_i2c_driver(tvaudio_driver);

View File

@ -1163,15 +1163,4 @@ static struct i2c_driver tvp514x_driver = {
.id_table = tvp514x_id,
};
static int __init tvp514x_init(void)
{
return i2c_add_driver(&tvp514x_driver);
}
static void __exit tvp514x_exit(void)
{
i2c_del_driver(&tvp514x_driver);
}
module_init(tvp514x_init);
module_exit(tvp514x_exit);
module_i2c_driver(tvp514x_driver);

View File

@ -1121,15 +1121,4 @@ static struct i2c_driver tvp5150_driver = {
.id_table = tvp5150_id,
};
static __init int init_tvp5150(void)
{
return i2c_add_driver(&tvp5150_driver);
}
static __exit void exit_tvp5150(void)
{
i2c_del_driver(&tvp5150_driver);
}
module_init(init_tvp5150);
module_exit(exit_tvp5150);
module_i2c_driver(tvp5150_driver);

View File

@ -1069,27 +1069,4 @@ static struct i2c_driver tvp7002_driver = {
.id_table = tvp7002_id,
};
/*
* tvp7002_init - Initialize driver via I2C interface
*
* Register the TVP7002 driver.
* Return 0 on success or error code on failure.
*/
static int __init tvp7002_init(void)
{
return i2c_add_driver(&tvp7002_driver);
}
/*
* tvp7002_exit - Remove driver via I2C interface
*
* Unregister the TVP7002 driver.
* Returns nothing.
*/
static void __exit tvp7002_exit(void)
{
i2c_del_driver(&tvp7002_driver);
}
module_init(tvp7002_init);
module_exit(tvp7002_exit);
module_i2c_driver(tvp7002_driver);

View File

@ -951,21 +951,7 @@ static struct i2c_driver tw9910_i2c_driver = {
.id_table = tw9910_id,
};
/*
* module function
*/
static int __init tw9910_module_init(void)
{
return i2c_add_driver(&tw9910_i2c_driver);
}
static void __exit tw9910_module_exit(void)
{
i2c_del_driver(&tw9910_i2c_driver);
}
module_init(tw9910_module_init);
module_exit(tw9910_module_exit);
module_i2c_driver(tw9910_i2c_driver);
MODULE_DESCRIPTION("SoC Camera driver for tw9910");
MODULE_AUTHOR("Kuninori Morimoto");

View File

@ -271,15 +271,4 @@ static struct i2c_driver upd64031a_driver = {
.id_table = upd64031a_id,
};
static __init int init_upd64031a(void)
{
return i2c_add_driver(&upd64031a_driver);
}
static __exit void exit_upd64031a(void)
{
i2c_del_driver(&upd64031a_driver);
}
module_init(init_upd64031a);
module_exit(exit_upd64031a);
module_i2c_driver(upd64031a_driver);

View File

@ -243,15 +243,4 @@ static struct i2c_driver upd64083_driver = {
.id_table = upd64083_id,
};
static __init int init_upd64083(void)
{
return i2c_add_driver(&upd64083_driver);
}
static __exit void exit_upd64083(void)
{
i2c_del_driver(&upd64083_driver);
}
module_init(init_upd64083);
module_exit(exit_upd64083);
module_i2c_driver(upd64083_driver);

View File

@ -208,15 +208,4 @@ static struct i2c_driver vp27smpx_driver = {
.id_table = vp27smpx_id,
};
static __init int init_vp27smpx(void)
{
return i2c_add_driver(&vp27smpx_driver);
}
static __exit void exit_vp27smpx(void)
{
i2c_del_driver(&vp27smpx_driver);
}
module_init(init_vp27smpx);
module_exit(exit_vp27smpx);
module_i2c_driver(vp27smpx_driver);

View File

@ -588,15 +588,4 @@ static struct i2c_driver vpx3220_driver = {
.id_table = vpx3220_id,
};
static __init int init_vpx3220(void)
{
return i2c_add_driver(&vpx3220_driver);
}
static __exit void exit_vpx3220(void)
{
i2c_del_driver(&vpx3220_driver);
}
module_init(init_vpx3220);
module_exit(exit_vpx3220);
module_i2c_driver(vpx3220_driver);

View File

@ -291,15 +291,4 @@ static struct i2c_driver wm8739_driver = {
.id_table = wm8739_id,
};
static __init int init_wm8739(void)
{
return i2c_add_driver(&wm8739_driver);
}
static __exit void exit_wm8739(void)
{
i2c_del_driver(&wm8739_driver);
}
module_init(init_wm8739);
module_exit(exit_wm8739);
module_i2c_driver(wm8739_driver);

View File

@ -339,15 +339,4 @@ static struct i2c_driver wm8775_driver = {
.id_table = wm8775_id,
};
static __init int init_wm8775(void)
{
return i2c_add_driver(&wm8775_driver);
}
static __exit void exit_wm8775(void)
{
i2c_del_driver(&wm8775_driver);
}
module_init(init_wm8775);
module_exit(exit_wm8775);
module_i2c_driver(wm8775_driver);