aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-12-17 11:16:41 +0800
committerColin Cross <ccross@android.com>2013-12-19 19:25:38 -0800
commit0a7dde3d881d173c9300bf1d46017cb593d3e52b (patch)
tree9ad5d70884a5a8d2546217c9f444172dd0e25743 /drivers/staging
parentd214ac7202b30062bf3164b61fc466793d359f7b (diff)
downloadlinaro-lsk-0a7dde3d881d173c9300bf1d46017cb593d3e52b.tar.gz
gpu: ion: use module_platform_driver to simplify the code
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/ion/tegra/tegra_ion.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/android/ion/tegra/tegra_ion.c b/drivers/staging/android/ion/tegra/tegra_ion.c
index 0849600bcc0..4b3d93fbf9a 100644
--- a/drivers/staging/android/ion/tegra/tegra_ion.c
+++ b/drivers/staging/android/ion/tegra/tegra_ion.c
@@ -81,16 +81,5 @@ static struct platform_driver ion_driver = {
.driver = { .name = "ion-tegra" }
};
-static int __init ion_init(void)
-{
- return platform_driver_register(&ion_driver);
-}
-
-static void __exit ion_exit(void)
-{
- platform_driver_unregister(&ion_driver);
-}
-
-module_init(ion_init);
-module_exit(ion_exit);
+module_platform_driver(ion_driver);