diff mbox

[1/1,media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file

Message ID 1341383595-4386-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat July 4, 2012, 6:33 a.m. UTC
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/video/s5p-tv/sii9234_drv.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

Comments

Tomasz Stanislawski July 5, 2012, 8:47 a.m. UTC | #1
Hi Sachin,

Thank you for the patch.


On 07/04/2012 08:33 AM, Sachin Kamat wrote:
> module_i2c_driver makes the code simpler by eliminating module_init
> and module_exit calls.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com>

> ---
>  drivers/media/video/s5p-tv/sii9234_drv.c |   12 +-----------
>  1 files changed, 1 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c
> index 0f31ecc..6d348f9 100644
> --- a/drivers/media/video/s5p-tv/sii9234_drv.c
> +++ b/drivers/media/video/s5p-tv/sii9234_drv.c
> @@ -419,14 +419,4 @@ static struct i2c_driver sii9234_driver = {
>  	.id_table = sii9234_id,
>  };
>  
> -static int __init sii9234_init(void)
> -{
> -	return i2c_add_driver(&sii9234_driver);
> -}
> -module_init(sii9234_init);
> -
> -static void __exit sii9234_exit(void)
> -{
> -	i2c_del_driver(&sii9234_driver);
> -}
> -module_exit(sii9234_exit);
> +module_i2c_driver(sii9234_driver);


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c
index 0f31ecc..6d348f9 100644
--- a/drivers/media/video/s5p-tv/sii9234_drv.c
+++ b/drivers/media/video/s5p-tv/sii9234_drv.c
@@ -419,14 +419,4 @@  static struct i2c_driver sii9234_driver = {
 	.id_table = sii9234_id,
 };
 
-static int __init sii9234_init(void)
-{
-	return i2c_add_driver(&sii9234_driver);
-}
-module_init(sii9234_init);
-
-static void __exit sii9234_exit(void)
-{
-	i2c_del_driver(&sii9234_driver);
-}
-module_exit(sii9234_exit);
+module_i2c_driver(sii9234_driver);