diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-26 23:04:25 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-04 22:46:58 +0400 |
commit | dbf2b92d54e73e4a2524b90d29bd498ecc4aa593 (patch) | |
tree | f632c477fbee168e36ca42013c68cf761dff3f7b /drivers/sbus/char/bbc_i2c.c | |
parent | e410471029ba99e85af5e2a1e7e747c7b4de2bc3 (diff) | |
download | linux-dbf2b92d54e73e4a2524b90d29bd498ecc4aa593.tar.xz |
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/bbc_i2c.c')
-rw-r--r-- | drivers/sbus/char/bbc_i2c.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c index a0d1399577cc..542668292900 100644 --- a/drivers/sbus/char/bbc_i2c.c +++ b/drivers/sbus/char/bbc_i2c.c @@ -416,17 +416,6 @@ static struct platform_driver bbc_i2c_driver = { .remove = __devexit_p(bbc_i2c_remove), }; -static int __init bbc_i2c_init(void) -{ - return platform_driver_register(&bbc_i2c_driver); -} - -static void __exit bbc_i2c_exit(void) -{ - platform_driver_unregister(&bbc_i2c_driver); -} - -module_init(bbc_i2c_init); -module_exit(bbc_i2c_exit); +module_platform_driver(bbc_i2c_driver); MODULE_LICENSE("GPL"); |