summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/lp3972.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/lp3972.c')
-rw-r--r--drivers/mfd/lp3972.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mfd/lp3972.c b/drivers/mfd/lp3972.c
index 054713b..42b2807 100644
--- a/drivers/mfd/lp3972.c
+++ b/drivers/mfd/lp3972.c
@@ -17,7 +17,6 @@
*/
#include <common.h>
-#include <init.h>
#include <driver.h>
#include <xfuncs.h>
#include <errno.h>
@@ -96,11 +95,4 @@ static struct driver_d lp_driver = {
.name = DRIVERNAME,
.probe = lp_probe,
};
-
-static int lp_init(void)
-{
- i2c_driver_register(&lp_driver);
- return 0;
-}
-
-device_initcall(lp_init);
+device_i2c_driver(lp_driver);