mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:50:58 +07:00
regulator: pca9450: Convert to use module_i2c_driver
Use module_i2c_driver to simplify driver init boilerplate. Signed-off-by: Axel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20200725014414.1825183-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9177514ce3
commit
3bda44ffd9
@ -826,17 +826,7 @@ static struct i2c_driver pca9450_i2c_driver = {
|
||||
.probe = pca9450_i2c_probe,
|
||||
};
|
||||
|
||||
static int __init pca9450_i2c_init(void)
|
||||
{
|
||||
return i2c_add_driver(&pca9450_i2c_driver);
|
||||
}
|
||||
module_init(pca9450_i2c_init);
|
||||
|
||||
static void __exit pca9450_i2c_exit(void)
|
||||
{
|
||||
i2c_del_driver(&pca9450_i2c_driver);
|
||||
}
|
||||
module_exit(pca9450_i2c_exit);
|
||||
module_i2c_driver(pca9450_i2c_driver);
|
||||
|
||||
MODULE_AUTHOR("Robin Gong <yibin.gong@nxp.com>");
|
||||
MODULE_DESCRIPTION("NXP PCA9450 Power Management IC driver");
|
||||
|
Loading…
Reference in New Issue
Block a user