summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl6030.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/twl6030.c')
-rw-r--r--drivers/mfd/twl6030.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mfd/twl6030.c b/drivers/mfd/twl6030.c
index 0645d3c..0a244de 100644
--- a/drivers/mfd/twl6030.c
+++ b/drivers/mfd/twl6030.c
@@ -5,7 +5,6 @@
*/
#include <common.h>
-#include <init.h>
#include <driver.h>
#include <xfuncs.h>
#include <errno.h>
@@ -67,11 +66,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);