mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
powerpc/83xx: use module_i2c_driver to simplify the code
Use the module_i2c_driver() macro to make the code smaller and a bit simpler. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
8c43d2b0ca
commit
98c7355fb3
1 changed files with 1 additions and 11 deletions
|
@ -231,17 +231,7 @@ static struct i2c_driver mcu_driver = {
|
||||||
.id_table = mcu_ids,
|
.id_table = mcu_ids,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init mcu_init(void)
|
module_i2c_driver(mcu_driver);
|
||||||
{
|
|
||||||
return i2c_add_driver(&mcu_driver);
|
|
||||||
}
|
|
||||||
module_init(mcu_init);
|
|
||||||
|
|
||||||
static void __exit mcu_exit(void)
|
|
||||||
{
|
|
||||||
i2c_del_driver(&mcu_driver);
|
|
||||||
}
|
|
||||||
module_exit(mcu_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Power Management and GPIO expander driver for "
|
MODULE_DESCRIPTION("Power Management and GPIO expander driver for "
|
||||||
"MPC8349E-mITX-compatible MCU");
|
"MPC8349E-mITX-compatible MCU");
|
||||||
|
|
Loading…
Add table
Reference in a new issue