MIPS: SEAD3: Convert I2C driver to module_platform_driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
4558e09469
commit
50a73f19e6
|
@ -387,17 +387,7 @@ static struct platform_driver sead3_i2c_platform_driver = {
|
||||||
.resume = sead3_i2c_platform_resume,
|
.resume = sead3_i2c_platform_resume,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init sead3_i2c_platform_init(void)
|
module_platform_driver(sead3_i2c_platform_driver);
|
||||||
{
|
|
||||||
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_AUTHOR("Chris Dearman, MIPS Technologies INC.");
|
MODULE_AUTHOR("Chris Dearman, MIPS Technologies INC.");
|
||||||
MODULE_DESCRIPTION("SEAD3 PIC32 I2C driver");
|
MODULE_DESCRIPTION("SEAD3 PIC32 I2C driver");
|
||||||
|
|
Loading…
Reference in New Issue