Skip to content

Commit

Permalink
spi: omap2-mcspi: convert to module_platform_driver
Browse files Browse the repository at this point in the history
this will delete a few lines of code, no functional
changes.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
  • Loading branch information
Felipe Balbi authored and Shubhrajyoti D committed Mar 19, 2012
1 parent 7d6b6d8 commit 9fdca9d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/spi/spi-omap2-mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,18 +1291,5 @@ static struct platform_driver omap2_mcspi_driver = {
.remove = __devexit_p(omap2_mcspi_remove),
};


static int __init omap2_mcspi_init(void)
{
return platform_driver_register(&omap2_mcspi_driver);
}
subsys_initcall(omap2_mcspi_init);

static void __exit omap2_mcspi_exit(void)
{
platform_driver_unregister(&omap2_mcspi_driver);

}
module_exit(omap2_mcspi_exit);

module_platform_driver(omap2_mcspi_driver);
MODULE_LICENSE("GPL");

0 comments on commit 9fdca9d

Please sign in to comment.