diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-03-27 16:47:42 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 11:22:05 -0400 |
commit | 50a73f19e67a966f518192f808ed7bfa8f80ff97 (patch) | |
tree | 80a6fc448c0a855bb44583eaf3297ac6b656c71e | |
parent | 4558e09469fe376752a8d3ba097a0cfe42691b72 (diff) |
MIPS: SEAD3: Convert I2C driver to module_platform_driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mti-sead3/sead3-i2c-drv.c | 12 |
1 files changed, 1 insertions, 11 deletions
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 = { | |||
387 | .resume = sead3_i2c_platform_resume, | 387 | .resume = sead3_i2c_platform_resume, |
388 | }; | 388 | }; |
389 | 389 | ||
390 | static int __init sead3_i2c_platform_init(void) | 390 | module_platform_driver(sead3_i2c_platform_driver); |
391 | { | ||
392 | return platform_driver_register(&sead3_i2c_platform_driver); | ||
393 | } | ||
394 | module_init(sead3_i2c_platform_init); | ||
395 | |||
396 | static void __exit sead3_i2c_platform_exit(void) | ||
397 | { | ||
398 | platform_driver_unregister(&sead3_i2c_platform_driver); | ||
399 | } | ||
400 | module_exit(sead3_i2c_platform_exit); | ||
401 | 391 | ||
402 | MODULE_AUTHOR("Chris Dearman, MIPS Technologies INC."); | 392 | MODULE_AUTHOR("Chris Dearman, MIPS Technologies INC."); |
403 | MODULE_DESCRIPTION("SEAD3 PIC32 I2C driver"); | 393 | MODULE_DESCRIPTION("SEAD3 PIC32 I2C driver"); |