summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl4030.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/twl4030.c')
-rw-r--r--drivers/mfd/twl4030.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mfd/twl4030.c b/drivers/mfd/twl4030.c
index 3b4c661..cf33efb 100644
--- a/drivers/mfd/twl4030.c
+++ b/drivers/mfd/twl4030.c
@@ -6,7 +6,6 @@
*/
#include <common.h>
-#include <init.h>
#include <driver.h>
#include <xfuncs.h>
#include <errno.h>
@@ -50,11 +49,4 @@ static struct driver_d twl_driver = {
.name = DRIVERNAME,
.probe = twl_probe,
};
-
-static int twl_init(void)
-{
- i2c_driver_register(&twl_driver);
- return 0;
-}
-
-device_initcall(twl_init);
+device_i2c_driver(twl_driver);