aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/au8522_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/au8522_decoder.c')
-rw-r--r--drivers/media/dvb/frontends/au8522_decoder.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/au8522_decoder.c b/drivers/media/dvb/frontends/au8522_decoder.c
index 29cdbfe36852..6d9c5943eb3d 100644
--- a/drivers/media/dvb/frontends/au8522_decoder.c
+++ b/drivers/media/dvb/frontends/au8522_decoder.c
@@ -36,7 +36,6 @@
36#include <linux/delay.h> 36#include <linux/delay.h>
37#include <media/v4l2-common.h> 37#include <media/v4l2-common.h>
38#include <media/v4l2-chip-ident.h> 38#include <media/v4l2-chip-ident.h>
39#include <media/v4l2-i2c-drv.h>
40#include <media/v4l2-device.h> 39#include <media/v4l2-device.h>
41#include "au8522.h" 40#include "au8522.h"
42#include "au8522_priv.h" 41#include "au8522_priv.h"
@@ -831,9 +830,25 @@ static const struct i2c_device_id au8522_id[] = {
831 830
832MODULE_DEVICE_TABLE(i2c, au8522_id); 831MODULE_DEVICE_TABLE(i2c, au8522_id);
833 832
834static struct v4l2_i2c_driver_data v4l2_i2c_data = { 833static struct i2c_driver au8522_driver = {
835 .name = "au8522", 834 .driver = {
836 .probe = au8522_probe, 835 .owner = THIS_MODULE,
837 .remove = au8522_remove, 836 .name = "au8522",
838 .id_table = au8522_id, 837 },
838 .probe = au8522_probe,
839 .remove = au8522_remove,
840 .id_table = au8522_id,
839}; 841};
842
843static __init int init_au8522(void)
844{
845 return i2c_add_driver(&au8522_driver);
846}
847
848static __exit void exit_au8522(void)
849{
850 i2c_del_driver(&au8522_driver);
851}
852
853module_init(init_au8522);
854module_exit(exit_au8522);