]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/input/touchscreen/tnetv107x-ts.c
Input: touchscreen - use macro module_platform_driver()
[karo-tx-linux.git] / drivers / input / touchscreen / tnetv107x-ts.c
index 0e8f63e5b36ffbd3ee99e1a751dff2d4400e06e7..7e74880973591bb61daa6e3317a94e43bb8f5415 100644 (file)
@@ -378,19 +378,7 @@ static struct platform_driver tsc_driver = {
        .driver.name    = "tnetv107x-ts",
        .driver.owner   = THIS_MODULE,
 };
-
-static int __init tsc_init(void)
-{
-       return platform_driver_register(&tsc_driver);
-}
-
-static void __exit tsc_exit(void)
-{
-       platform_driver_unregister(&tsc_driver);
-}
-
-module_init(tsc_init);
-module_exit(tsc_exit);
+module_platform_driver(tsc_driver);
 
 MODULE_AUTHOR("Cyril Chemparathy");
 MODULE_DESCRIPTION("TNETV107X Touchscreen Driver");