aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5k6aa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5k6aa.c')
-rw-r--r--drivers/media/video/s5k6aa.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/media/video/s5k6aa.c b/drivers/media/video/s5k6aa.c
index 0df7f2a41814..6625e46a4638 100644
--- a/drivers/media/video/s5k6aa.c
+++ b/drivers/media/video/s5k6aa.c
@@ -1582,8 +1582,8 @@ static int s5k6aa_probe(struct i2c_client *client,
1582 s5k6aa->inv_vflip = pdata->vert_flip; 1582 s5k6aa->inv_vflip = pdata->vert_flip;
1583 1583
1584 sd = &s5k6aa->sd; 1584 sd = &s5k6aa->sd;
1585 strlcpy(sd->name, DRIVER_NAME, sizeof(sd->name));
1586 v4l2_i2c_subdev_init(sd, client, &s5k6aa_subdev_ops); 1585 v4l2_i2c_subdev_init(sd, client, &s5k6aa_subdev_ops);
1586 strlcpy(sd->name, DRIVER_NAME, sizeof(sd->name));
1587 1587
1588 sd->internal_ops = &s5k6aa_subdev_internal_ops; 1588 sd->internal_ops = &s5k6aa_subdev_internal_ops;
1589 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; 1589 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
@@ -1663,18 +1663,7 @@ static struct i2c_driver s5k6aa_i2c_driver = {
1663 .id_table = s5k6aa_id, 1663 .id_table = s5k6aa_id,
1664}; 1664};
1665 1665
1666static int __init s5k6aa_init(void) 1666module_i2c_driver(s5k6aa_i2c_driver);
1667{
1668 return i2c_add_driver(&s5k6aa_i2c_driver);
1669}
1670
1671static void __exit s5k6aa_exit(void)
1672{
1673 i2c_del_driver(&s5k6aa_i2c_driver);
1674}
1675
1676module_init(s5k6aa_init);
1677module_exit(s5k6aa_exit);
1678 1667
1679MODULE_DESCRIPTION("Samsung S5K6AA(FX) SXGA camera driver"); 1668MODULE_DESCRIPTION("Samsung S5K6AA(FX) SXGA camera driver");
1680MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>"); 1669MODULE_AUTHOR("Sylwester Nawrocki <s.nawrocki@samsung.com>");