Skip to content

Commit

Permalink
ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c
Browse files Browse the repository at this point in the history
module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Sachin Kamat authored and Kukjin Kim committed Sep 6, 2012
1 parent 4e321a3 commit 1fffc8b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions arch/arm/mach-s3c24xx/h1940-bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,7 @@ static struct platform_driver h1940bt_driver = {
.remove = h1940bt_remove,
};


static int __init h1940bt_init(void)
{
return platform_driver_register(&h1940bt_driver);
}

static void __exit h1940bt_exit(void)
{
platform_driver_unregister(&h1940bt_driver);
}

module_init(h1940bt_init);
module_exit(h1940bt_exit);
module_platform_driver(h1940bt_driver);

MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
MODULE_DESCRIPTION("Driver for the iPAQ H1940 bluetooth chip");
Expand Down

0 comments on commit 1fffc8b

Please sign in to comment.