From: Ralf Baechle Date: Fri, 27 Mar 2015 20:47:42 +0000 (+0100) Subject: MIPS: SEAD3: Convert I2C driver to module_platform_driver. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=50a73f19e67a966f518192f808ed7bfa8f80ff97;p=openwrt%2Fstaging%2Fblogic.git MIPS: SEAD3: Convert I2C driver to module_platform_driver. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c b/arch/mips/mti-sead3/sead3-i2c-drv.c index 2bebf0974e39..6aaf6f88308b 100644 --- a/arch/mips/mti-sead3/sead3-i2c-drv.c +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c @@ -387,17 +387,7 @@ static struct platform_driver sead3_i2c_platform_driver = { .resume = sead3_i2c_platform_resume, }; -static int __init sead3_i2c_platform_init(void) -{ - return platform_driver_register(&sead3_i2c_platform_driver); -} -module_init(sead3_i2c_platform_init); - -static void __exit sead3_i2c_platform_exit(void) -{ - platform_driver_unregister(&sead3_i2c_platform_driver); -} -module_exit(sead3_i2c_platform_exit); +module_platform_driver(sead3_i2c_platform_driver); MODULE_AUTHOR("Chris Dearman, MIPS Technologies INC."); MODULE_DESCRIPTION("SEAD3 PIC32 I2C driver");