aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-15 14:22:34 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:00 -0400
commit61a489c8ba33c8ef11e3a8b55c22afe834bdf1d4 (patch)
tree83bf0790ae9f87e248f5c293fb6594f01d9a8a5b
parentdfc5a0161f0b22f542700d911841d6cfc59030f8 (diff)
V4L/DVB: msp3400: remove obsolete v4l2-i2c-drv.h header
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/msp3400-driver.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c
index 0e412131da7c..fe18a0ab7acb 100644
--- a/drivers/media/video/msp3400-driver.c
+++ b/drivers/media/video/msp3400-driver.c
@@ -56,7 +56,6 @@
56#include <linux/videodev2.h> 56#include <linux/videodev2.h>
57#include <media/v4l2-device.h> 57#include <media/v4l2-device.h>
58#include <media/v4l2-ioctl.h> 58#include <media/v4l2-ioctl.h>
59#include <media/v4l2-i2c-drv.h>
60#include <media/msp3400.h> 59#include <media/msp3400.h>
61#include <media/tvaudio.h> 60#include <media/tvaudio.h>
62#include "msp3400-driver.h" 61#include "msp3400-driver.h"
@@ -843,15 +842,31 @@ static const struct i2c_device_id msp_id[] = {
843}; 842};
844MODULE_DEVICE_TABLE(i2c, msp_id); 843MODULE_DEVICE_TABLE(i2c, msp_id);
845 844
846static struct v4l2_i2c_driver_data v4l2_i2c_data = { 845static struct i2c_driver msp_driver = {
847 .name = "msp3400", 846 .driver = {
848 .probe = msp_probe, 847 .owner = THIS_MODULE,
849 .remove = msp_remove, 848 .name = "msp3400",
850 .suspend = msp_suspend, 849 },
851 .resume = msp_resume, 850 .probe = msp_probe,
852 .id_table = msp_id, 851 .remove = msp_remove,
852 .suspend = msp_suspend,
853 .resume = msp_resume,
854 .id_table = msp_id,
853}; 855};
854 856
857static __init int init_msp(void)
858{
859 return i2c_add_driver(&msp_driver);
860}
861
862static __exit void exit_msp(void)
863{
864 i2c_del_driver(&msp_driver);
865}
866
867module_init(init_msp);
868module_exit(exit_msp);
869
855/* 870/*
856 * Overrides for Emacs so that we follow Linus's tabbing style. 871 * Overrides for Emacs so that we follow Linus's tabbing style.
857 * --------------------------------------------------------------------------- 872 * ---------------------------------------------------------------------------