spi: omap2-mcspi: convert to module_platform_driver
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>
This commit is contained in:
parent
7d6b6d8313
commit
9fdca9dfe0
1 changed files with 1 additions and 14 deletions
|
@ -1291,18 +1291,5 @@ static struct platform_driver omap2_mcspi_driver = {
|
||||||
.remove = __devexit_p(omap2_mcspi_remove),
|
.remove = __devexit_p(omap2_mcspi_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module_platform_driver(omap2_mcspi_driver);
|
||||||
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_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Add table
Reference in a new issue