Skip to content

Commit

Permalink
video: omap: convert drivers/video/omap/* to use module_platform_driv…
Browse files Browse the repository at this point in the history
…er()

This patch converts the drivers in drivers/video/omap/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: Jonathan McDowell <noodles@earth.li>
Cc: Cory Maccarrone <darkstar6262@gmail.com>
Cc: Laurent Gonzalez <palmte.linux@free.fr>
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Axel Lin authored and Tomi Valkeinen committed Jan 2, 2012
1 parent f990544 commit f806f9b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 114 deletions.
13 changes: 1 addition & 12 deletions drivers/video/omap/lcd_ams_delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,4 @@ static struct platform_driver ams_delta_panel_driver = {
},
};

static int __init ams_delta_panel_drv_init(void)
{
return platform_driver_register(&ams_delta_panel_driver);
}

static void __exit ams_delta_panel_drv_cleanup(void)
{
platform_driver_unregister(&ams_delta_panel_driver);
}

module_init(ams_delta_panel_drv_init);
module_exit(ams_delta_panel_drv_cleanup);
module_platform_driver(ams_delta_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,4 @@ static struct platform_driver h3_panel_driver = {
},
};

static int __init h3_panel_drv_init(void)
{
return platform_driver_register(&h3_panel_driver);
}

static void __exit h3_panel_drv_cleanup(void)
{
platform_driver_unregister(&h3_panel_driver);
}

module_init(h3_panel_drv_init);
module_exit(h3_panel_drv_cleanup);

module_platform_driver(h3_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_htcherald.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,4 @@ static struct platform_driver htcherald_panel_driver = {
},
};

static int __init htcherald_panel_drv_init(void)
{
return platform_driver_register(&htcherald_panel_driver);
}

static void __exit htcherald_panel_drv_cleanup(void)
{
platform_driver_unregister(&htcherald_panel_driver);
}

module_init(htcherald_panel_drv_init);
module_exit(htcherald_panel_drv_cleanup);

module_platform_driver(htcherald_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_inn1510.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,4 @@ static struct platform_driver innovator1510_panel_driver = {
},
};

static int __init innovator1510_panel_drv_init(void)
{
return platform_driver_register(&innovator1510_panel_driver);
}

static void __exit innovator1510_panel_drv_cleanup(void)
{
platform_driver_unregister(&innovator1510_panel_driver);
}

module_init(innovator1510_panel_drv_init);
module_exit(innovator1510_panel_drv_cleanup);

module_platform_driver(innovator1510_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_inn1610.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,4 @@ static struct platform_driver innovator1610_panel_driver = {
},
};

static int __init innovator1610_panel_drv_init(void)
{
return platform_driver_register(&innovator1610_panel_driver);
}

static void __exit innovator1610_panel_drv_cleanup(void)
{
platform_driver_unregister(&innovator1610_panel_driver);
}

module_init(innovator1610_panel_drv_init);
module_exit(innovator1610_panel_drv_cleanup);

module_platform_driver(innovator1610_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_osk.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,4 @@ static struct platform_driver osk_panel_driver = {
},
};

static int __init osk_panel_drv_init(void)
{
return platform_driver_register(&osk_panel_driver);
}

static void __exit osk_panel_drv_cleanup(void)
{
platform_driver_unregister(&osk_panel_driver);
}

module_init(osk_panel_drv_init);
module_exit(osk_panel_drv_cleanup);

module_platform_driver(osk_panel_driver);
14 changes: 1 addition & 13 deletions drivers/video/omap/lcd_palmte.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,4 @@ static struct platform_driver palmte_panel_driver = {
},
};

static int __init palmte_panel_drv_init(void)
{
return platform_driver_register(&palmte_panel_driver);
}

static void __exit palmte_panel_drv_cleanup(void)
{
platform_driver_unregister(&palmte_panel_driver);
}

module_init(palmte_panel_drv_init);
module_exit(palmte_panel_drv_cleanup);

module_platform_driver(palmte_panel_driver);
13 changes: 1 addition & 12 deletions drivers/video/omap/lcd_palmtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,4 @@ static struct platform_driver palmtt_panel_driver = {
},
};

static int __init palmtt_panel_drv_init(void)
{
return platform_driver_register(&palmtt_panel_driver);
}

static void __exit palmtt_panel_drv_cleanup(void)
{
platform_driver_unregister(&palmtt_panel_driver);
}

module_init(palmtt_panel_drv_init);
module_exit(palmtt_panel_drv_cleanup);
module_platform_driver(palmtt_panel_driver);
13 changes: 1 addition & 12 deletions drivers/video/omap/lcd_palmz71.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,4 @@ static struct platform_driver palmz71_panel_driver = {
},
};

static int __init palmz71_panel_drv_init(void)
{
return platform_driver_register(&palmz71_panel_driver);
}

static void __exit palmz71_panel_drv_cleanup(void)
{
platform_driver_unregister(&palmz71_panel_driver);
}

module_init(palmz71_panel_drv_init);
module_exit(palmz71_panel_drv_cleanup);
module_platform_driver(palmz71_panel_driver);

0 comments on commit f806f9b

Please sign in to comment.