aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-janz-ttl.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-07 11:24:00 -0500
committerGrant Likely <grant.likely@secretlab.ca>2012-01-02 02:26:06 -0500
commit6f61415e9c4c0ab02c8eda7671bb652db4863cc0 (patch)
tree689e7f50b2d6de5a5a36d72b2ba72a742d39341c /drivers/gpio/gpio-janz-ttl.c
parentf134759955bbb5bf28a8d2c6fe5aa201d1ffb860 (diff)
gpio: Convert GPIO drivers to module_platform_driver
Where appropriate factor out some boilerplate code for platform device registration into module_platform_driver. Drivers that don't use the standard module_init initcall haven't been converted. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-janz-ttl.c')
-rw-r--r--drivers/gpio/gpio-janz-ttl.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c
index 6f7fda0b61ab..f2f000dd70b3 100644
--- a/drivers/gpio/gpio-janz-ttl.c
+++ b/drivers/gpio/gpio-janz-ttl.c
@@ -237,20 +237,9 @@ static struct platform_driver ttl_driver = {
237 .remove = __devexit_p(ttl_remove), 237 .remove = __devexit_p(ttl_remove),
238}; 238};
239 239
240static int __init ttl_init(void) 240module_platform_driver(ttl_driver);
241{
242 return platform_driver_register(&ttl_driver);
243}
244
245static void __exit ttl_exit(void)
246{
247 platform_driver_unregister(&ttl_driver);
248}
249 241
250MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 242MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>");
251MODULE_DESCRIPTION("Janz MODULbus VMOD-TTL Driver"); 243MODULE_DESCRIPTION("Janz MODULbus VMOD-TTL Driver");
252MODULE_LICENSE("GPL"); 244MODULE_LICENSE("GPL");
253MODULE_ALIAS("platform:janz-ttl"); 245MODULE_ALIAS("platform:janz-ttl");
254
255module_init(ttl_init);
256module_exit(ttl_exit);