summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/act8846.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/act8846.c')
-rw-r--r--drivers/mfd/act8846.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mfd/act8846.c b/drivers/mfd/act8846.c
index dfca049..53ab70f 100644
--- a/drivers/mfd/act8846.c
+++ b/drivers/mfd/act8846.c
@@ -18,7 +18,6 @@
*/
#include <common.h>
-#include <init.h>
#include <driver.h>
#include <xfuncs.h>
#include <errno.h>
@@ -144,11 +143,4 @@ static struct driver_d act8846_driver = {
.name = DRIVERNAME,
.probe = act8846_probe,
};
-
-static int act8846_init(void)
-{
- i2c_driver_register(&act8846_driver);
- return 0;
-}
-
-device_initcall(act8846_init);
+device_i2c_driver(act8846_driver);