diff options
-rw-r--r-- | drivers/regulator/pca9450-regulator.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c index 02250459aa90..eb5822bf53e0 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -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"); |