mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
mmc: mvsdio: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
d4bf63251c
commit
4a2d8ecce0
1 changed files with 1 additions and 12 deletions
|
@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init mvsd_init(void)
|
module_platform_driver_probe(mvsd_driver, mvsd_probe);
|
||||||
{
|
|
||||||
return platform_driver_probe(&mvsd_driver, mvsd_probe);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit mvsd_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&mvsd_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(mvsd_init);
|
|
||||||
module_exit(mvsd_exit);
|
|
||||||
|
|
||||||
/* maximum card clock frequency (default 50MHz) */
|
/* maximum card clock frequency (default 50MHz) */
|
||||||
module_param(maxfreq, int, 0);
|
module_param(maxfreq, int, 0);
|
||||||
|
|
Loading…
Reference in a new issue