Skip to content

Commit

Permalink
mmc: mvsdio: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Chris Ball committed Mar 22, 2013
1 parent d4bf632 commit 4a2d8ec
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/mmc/host/mvsdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
},
};

static int __init mvsd_init(void)
{
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);
module_platform_driver_probe(mvsd_driver, mvsd_probe);

/* maximum card clock frequency (default 50MHz) */
module_param(maxfreq, int, 0);
Expand Down

0 comments on commit 4a2d8ec

Please sign in to comment.