Skip to content

Commit

Permalink
add __init/__exit macros to omap video drivers
Browse files Browse the repository at this point in the history
Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of the following drivers in media/omap:
drivers/video/omap/lcd_ams_delta.c
drivers/video/omap/lcd_mipid.c

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Peter Huewe authored and Jiri Kosina committed Nov 9, 2009
1 parent 06fe9fb commit b89ea90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/video/omap/lcd_ams_delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ struct platform_driver ams_delta_panel_driver = {
},
};

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

static void ams_delta_panel_drv_cleanup(void)
static void __exit ams_delta_panel_drv_cleanup(void)
{
platform_driver_unregister(&ams_delta_panel_driver);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/omap/lcd_mipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,15 +607,15 @@ static struct spi_driver mipid_spi_driver = {
.remove = __devexit_p(mipid_spi_remove),
};

static int mipid_drv_init(void)
static int __init mipid_drv_init(void)
{
spi_register_driver(&mipid_spi_driver);

return 0;
}
module_init(mipid_drv_init);

static void mipid_drv_cleanup(void)
static void __exit mipid_drv_cleanup(void)
{
spi_unregister_driver(&mipid_spi_driver);
}
Expand Down

0 comments on commit b89ea90

Please sign in to comment.