Skip to content

Commit

Permalink
staging: xillybus: Use module_platform_driver
Browse files Browse the repository at this point in the history
module_platform_driver simplifies the code by removing the boilerplate.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sachin Kamat authored and Greg Kroah-Hartman committed Oct 11, 2013
1 parent 4705257 commit 7a620a6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/staging/xillybus/xillybus_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,4 @@ static struct platform_driver xillybus_platform_driver = {
},
};

static int __init xillybus_of_init(void)
{
return platform_driver_register(&xillybus_platform_driver);
}

static void __exit xillybus_of_exit(void)
{
platform_driver_unregister(&xillybus_platform_driver);
}

module_init(xillybus_of_init);
module_exit(xillybus_of_exit);
module_platform_driver(xillybus_platform_driver);

0 comments on commit 7a620a6

Please sign in to comment.