This patch set just did one simple thing: convert to module_platform_driver() in video driver to simplify the code.
Hanjun Guo (10): Video / hecubafb: Use module_platform_driver() to simplify code Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code Video / metronomefb: Use module_platform_driver() to simplify code Video / jz4740_fb: Use module_platform_driver() to simplify code Video / da8xx-fb: Use module_platform_driver() to simplify code Video / cobalt_lcdfb: Use module_platform_driver() to simplify code Video / broadsheetfb: Use module_platform_driver() to simplify code Video / bf54x-lq043fb: Use module_platform_driver() to simplify code Video / au1200fb: Use module_platform_driver() to simplify code Video / au1100fb: Use module_platform_driver() to simplify code
drivers/video/au1100fb.c | 14 +------------- drivers/video/au1200fb.c | 16 +--------------- drivers/video/bf54x-lq043fb.c | 14 +------------- drivers/video/bfin-t350mcqb-fb.c | 14 +------------- drivers/video/broadsheetfb.c | 14 +------------- drivers/video/cobalt_lcdfb.c | 14 +------------- drivers/video/da8xx-fb.c | 14 +------------- drivers/video/hecubafb.c | 14 +------------- drivers/video/jz4740_fb.c | 13 +------------ drivers/video/metronomefb.c | 14 +------------- 10 files changed, 10 insertions(+), 131 deletions(-)
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/hecubafb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 59d2318..702b599 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -305,19 +305,7 @@ static struct platform_driver hecubafb_driver = { .name = "hecubafb", }, }; - -static int __init hecubafb_init(void) -{ - return platform_driver_register(&hecubafb_driver); -} - -static void __exit hecubafb_exit(void) -{ - platform_driver_unregister(&hecubafb_driver); -} - -module_init(hecubafb_init); -module_exit(hecubafb_exit); +module_platform_driver(hecubafb_driver);
MODULE_DESCRIPTION("fbdev driver for Hecuba/Apollo controller"); MODULE_AUTHOR("Jaya Kumar");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/bfin-t350mcqb-fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c index 48c0c4e..b5cf130 100644 --- a/drivers/video/bfin-t350mcqb-fb.c +++ b/drivers/video/bfin-t350mcqb-fb.c @@ -664,19 +664,7 @@ static struct platform_driver bfin_t350mcqb_driver = { .owner = THIS_MODULE, }, }; - -static int __init bfin_t350mcqb_driver_init(void) -{ - return platform_driver_register(&bfin_t350mcqb_driver); -} - -static void __exit bfin_t350mcqb_driver_cleanup(void) -{ - platform_driver_unregister(&bfin_t350mcqb_driver); -} +module_platform_driver(bfin_t350mcqb_driver);
MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); MODULE_LICENSE("GPL"); - -module_init(bfin_t350mcqb_driver_init); -module_exit(bfin_t350mcqb_driver_cleanup);
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/metronomefb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c index f30150d..2d7dd8e 100644 --- a/drivers/video/metronomefb.c +++ b/drivers/video/metronomefb.c @@ -769,23 +769,11 @@ static struct platform_driver metronomefb_driver = { .name = "metronomefb", }, }; - -static int __init metronomefb_init(void) -{ - return platform_driver_register(&metronomefb_driver); -} - -static void __exit metronomefb_exit(void) -{ - platform_driver_unregister(&metronomefb_driver); -} +module_platform_driver(metronomefb_driver);
module_param(user_wfm_size, uint, 0); MODULE_PARM_DESC(user_wfm_size, "Set custom waveform size");
-module_init(metronomefb_init); -module_exit(metronomefb_exit); - MODULE_DESCRIPTION("fbdev driver for Metronome controller"); MODULE_AUTHOR("Jaya Kumar"); MODULE_LICENSE("GPL");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/jz4740_fb.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index 2c49112..c5ec188 100644 --- a/drivers/video/jz4740_fb.c +++ b/drivers/video/jz4740_fb.c @@ -798,18 +798,7 @@ static struct platform_driver jzfb_driver = { .pm = JZFB_PM_OPS, }, }; - -static int __init jzfb_init(void) -{ - return platform_driver_register(&jzfb_driver); -} -module_init(jzfb_init); - -static void __exit jzfb_exit(void) -{ - platform_driver_unregister(&jzfb_driver); -} -module_exit(jzfb_exit); +module_platform_driver(jzfb_driver);
MODULE_LICENSE("GPL"); MODULE_AUTHOR("Lars-Peter Clausen lars@metafoo.de");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/da8xx-fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index e030e17..dd41512 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -1663,19 +1663,7 @@ static struct platform_driver da8xx_fb_driver = { .owner = THIS_MODULE, }, }; - -static int __init da8xx_fb_init(void) -{ - return platform_driver_register(&da8xx_fb_driver); -} - -static void __exit da8xx_fb_cleanup(void) -{ - platform_driver_unregister(&da8xx_fb_driver); -} - -module_init(da8xx_fb_init); -module_exit(da8xx_fb_cleanup); +module_platform_driver(da8xx_fb_driver);
MODULE_DESCRIPTION("Framebuffer driver for TI da8xx/omap-l1xx"); MODULE_AUTHOR("Texas Instruments");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/cobalt_lcdfb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c index a903149..a7b0ab6 100644 --- a/drivers/video/cobalt_lcdfb.c +++ b/drivers/video/cobalt_lcdfb.c @@ -395,19 +395,7 @@ static struct platform_driver cobalt_lcdfb_driver = { .owner = THIS_MODULE, }, }; - -static int __init cobalt_lcdfb_init(void) -{ - return platform_driver_register(&cobalt_lcdfb_driver); -} - -static void __exit cobalt_lcdfb_exit(void) -{ - platform_driver_unregister(&cobalt_lcdfb_driver); -} - -module_init(cobalt_lcdfb_init); -module_exit(cobalt_lcdfb_exit); +module_platform_driver(cobalt_lcdfb_driver);
MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Yoichi Yuasa");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/broadsheetfb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c index b09701c..393d5a0 100644 --- a/drivers/video/broadsheetfb.c +++ b/drivers/video/broadsheetfb.c @@ -1217,19 +1217,7 @@ static struct platform_driver broadsheetfb_driver = { .name = "broadsheetfb", }, }; - -static int __init broadsheetfb_init(void) -{ - return platform_driver_register(&broadsheetfb_driver); -} - -static void __exit broadsheetfb_exit(void) -{ - platform_driver_unregister(&broadsheetfb_driver); -} - -module_init(broadsheetfb_init); -module_exit(broadsheetfb_exit); +module_platform_driver(broadsheetfb_driver);
MODULE_DESCRIPTION("fbdev driver for Broadsheet controller"); MODULE_AUTHOR("Jaya Kumar");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/bf54x-lq043fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c index 87f288b..42b8f9d 100644 --- a/drivers/video/bf54x-lq043fb.c +++ b/drivers/video/bf54x-lq043fb.c @@ -761,19 +761,7 @@ static struct platform_driver bfin_bf54x_driver = { .owner = THIS_MODULE, }, }; - -static int __init bfin_bf54x_driver_init(void) -{ - return platform_driver_register(&bfin_bf54x_driver); -} - -static void __exit bfin_bf54x_driver_cleanup(void) -{ - platform_driver_unregister(&bfin_bf54x_driver); -} +module_platform_driver(bfin_bf54x_driver);
MODULE_DESCRIPTION("Blackfin BF54x TFT LCD Driver"); MODULE_LICENSE("GPL"); - -module_init(bfin_bf54x_driver_init); -module_exit(bfin_bf54x_driver_cleanup);
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/au1200fb.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/drivers/video/au1200fb.c b/drivers/video/au1200fb.c index 301224e..7a6b4c6 100644 --- a/drivers/video/au1200fb.c +++ b/drivers/video/au1200fb.c @@ -1874,21 +1874,7 @@ static struct platform_driver au1200fb_driver = { .probe = au1200fb_drv_probe, .remove = au1200fb_drv_remove, }; - -/*-------------------------------------------------------------------------*/ - -static int __init au1200fb_init(void) -{ - return platform_driver_register(&au1200fb_driver); -} - -static void __exit au1200fb_cleanup(void) -{ - platform_driver_unregister(&au1200fb_driver); -} - -module_init(au1200fb_init); -module_exit(au1200fb_cleanup); +module_platform_driver(au1200fb_driver);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL");
Convert to module_platform_driver() to simplify code.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/video/au1100fb.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index a54ccdc..3d306d4 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c @@ -660,19 +660,7 @@ static struct platform_driver au1100fb_driver = { .suspend = au1100fb_drv_suspend, .resume = au1100fb_drv_resume, }; - -static int __init au1100fb_load(void) -{ - return platform_driver_register(&au1100fb_driver); -} - -static void __exit au1100fb_unload(void) -{ - platform_driver_unregister(&au1100fb_driver); -} - -module_init(au1100fb_load); -module_exit(au1100fb_unload); +module_platform_driver(au1100fb_driver);
MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL");
On 29/09/13 08:32, Hanjun Guo wrote:
This patch set just did one simple thing: convert to module_platform_driver() in video driver to simplify the code.
Hanjun Guo (10): Video / hecubafb: Use module_platform_driver() to simplify code Video / bfin-t350mcqb-fb: Use module_platform_driver() to simplify code Video / metronomefb: Use module_platform_driver() to simplify code Video / jz4740_fb: Use module_platform_driver() to simplify code Video / da8xx-fb: Use module_platform_driver() to simplify code Video / cobalt_lcdfb: Use module_platform_driver() to simplify code Video / broadsheetfb: Use module_platform_driver() to simplify code Video / bf54x-lq043fb: Use module_platform_driver() to simplify code Video / au1200fb: Use module_platform_driver() to simplify code Video / au1100fb: Use module_platform_driver() to simplify code
drivers/video/au1100fb.c | 14 +------------- drivers/video/au1200fb.c | 16 +--------------- drivers/video/bf54x-lq043fb.c | 14 +------------- drivers/video/bfin-t350mcqb-fb.c | 14 +------------- drivers/video/broadsheetfb.c | 14 +------------- drivers/video/cobalt_lcdfb.c | 14 +------------- drivers/video/da8xx-fb.c | 14 +------------- drivers/video/hecubafb.c | 14 +------------- drivers/video/jz4740_fb.c | 13 +------------ drivers/video/metronomefb.c | 14 +------------- 10 files changed, 10 insertions(+), 131 deletions(-)
Thanks, queuing for 3.13.
Tomi