diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-12 14:32:04 -0500 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-01-12 14:32:04 -0500 |
commit | a3664b51c783aaa0dde1c95334d1a670d6d54590 (patch) | |
tree | 6b778b6f222800b761abcba0418a2b8d50718442 /drivers/i2c/busses/i2c-mpc.c | |
parent | a699ed6f1f977dcc4a49452a247cf21dc9cec3f9 (diff) |
i2c/busses: Use module_platform_driver()
Convert the drivers in drivers/i2c/busses/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Ben Dooks <ben-linux@fluff.org>
Acked-by: Jochen Friedrich <jochen@scram.de>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Barry Song <21cnbao@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Yong Zhang <yong.zhang0@gmail.com>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-mpc.c')
-rw-r--r-- | drivers/i2c/busses/i2c-mpc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index 107397a606b4..a8ebb84e23f9 100644 --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c | |||
@@ -715,18 +715,7 @@ static struct platform_driver mpc_i2c_driver = { | |||
715 | }, | 715 | }, |
716 | }; | 716 | }; |
717 | 717 | ||
718 | static int __init fsl_i2c_init(void) | 718 | module_platform_driver(mpc_i2c_driver); |
719 | { | ||
720 | return platform_driver_register(&mpc_i2c_driver); | ||
721 | } | ||
722 | |||
723 | static void __exit fsl_i2c_exit(void) | ||
724 | { | ||
725 | platform_driver_unregister(&mpc_i2c_driver); | ||
726 | } | ||
727 | |||
728 | module_init(fsl_i2c_init); | ||
729 | module_exit(fsl_i2c_exit); | ||
730 | 719 | ||
731 | MODULE_AUTHOR("Adrian Cox <adrian@humboldt.co.uk>"); | 720 | MODULE_AUTHOR("Adrian Cox <adrian@humboldt.co.uk>"); |
732 | MODULE_DESCRIPTION("I2C-Bus adapter for MPC107 bridge and " | 721 | MODULE_DESCRIPTION("I2C-Bus adapter for MPC107 bridge and " |