Skip to content

Commit

Permalink
Input: amikbd - use module_platform_driver_probe macro
Browse files Browse the repository at this point in the history
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed Mar 18, 2013
1 parent 8c0aafe commit e67d541
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/input/keyboard/amikbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,6 @@ static struct platform_driver amikbd_driver = {
},
};

static int __init amikbd_init(void)
{
return platform_driver_probe(&amikbd_driver, amikbd_probe);
}

module_init(amikbd_init);

static void __exit amikbd_exit(void)
{
platform_driver_unregister(&amikbd_driver);
}

module_exit(amikbd_exit);
module_platform_driver_probe(amikbd_driver, amikbd_probe);

MODULE_ALIAS("platform:amiga-keyboard");

0 comments on commit e67d541

Please sign in to comment.