diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 19:04:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-04 10:46:58 -0800 |
commit | dbf2b92d54e73e4a2524b90d29bd498ecc4aa593 (patch) | |
tree | f632c477fbee168e36ca42013c68cf761dff3f7b /drivers/sbus/char/display7seg.c | |
parent | e410471029ba99e85af5e2a1e7e747c7b4de2bc3 (diff) | |
download | linux-3.10-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.tar.gz linux-3.10-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.tar.bz2 linux-3.10-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.zip |
sbus: convert drivers/sbus/char/* to use module_platform_driver()
This patch converts the drivers in drivers/sbus/char/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/display7seg.c')
-rw-r--r-- | drivers/sbus/char/display7seg.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index 965a1fccd66..4b9939726c3 100644 --- a/drivers/sbus/char/display7seg.c +++ b/drivers/sbus/char/display7seg.c @@ -275,15 +275,4 @@ static struct platform_driver d7s_driver = { .remove = __devexit_p(d7s_remove), }; -static int __init d7s_init(void) -{ - return platform_driver_register(&d7s_driver); -} - -static void __exit d7s_exit(void) -{ - platform_driver_unregister(&d7s_driver); -} - -module_init(d7s_init); -module_exit(d7s_exit); +module_platform_driver(d7s_driver); |