aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/noon010pc30.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/noon010pc30.c')
-rw-r--r--drivers/media/video/noon010pc30.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/media/video/noon010pc30.c b/drivers/media/video/noon010pc30.c
index 50838bf84204..440c12962bae 100644
--- a/drivers/media/video/noon010pc30.c
+++ b/drivers/media/video/noon010pc30.c
@@ -725,8 +725,8 @@ static int noon010_probe(struct i2c_client *client,
725 725
726 mutex_init(&info->lock); 726 mutex_init(&info->lock);
727 sd = &info->sd; 727 sd = &info->sd;
728 strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
729 v4l2_i2c_subdev_init(sd, client, &noon010_ops); 728 v4l2_i2c_subdev_init(sd, client, &noon010_ops);
729 strlcpy(sd->name, MODULE_NAME, sizeof(sd->name));
730 730
731 sd->internal_ops = &noon010_subdev_internal_ops; 731 sd->internal_ops = &noon010_subdev_internal_ops;
732 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; 732 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
@@ -844,18 +844,7 @@ static struct i2c_driver noon010_i2c_driver = {
844 .id_table = noon010_id, 844 .id_table = noon010_id,
845}; 845};
846 846
847static int __init noon010_init(void) 847module_i2c_driver(noon010_i2c_driver);
848{
849 return i2c_add_driver(&noon010_i2c_driver);
850}
851
852static void __exit noon010_exit(void)
853{
854 i2c_del_driver(&noon010_i2c_driver);
855}
856
857module_init(noon010_init);
858module_exit(noon010_exit);
859 848
860MODULE_DESCRIPTION("Siliconfile NOON010PC30 camera driver"); 849MODULE_DESCRIPTION("Siliconfile NOON010PC30 camera driver");
861MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>"); 850MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");