summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-malta-fpga-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-malta-fpga-i2c.c')
-rw-r--r--drivers/gpio/gpio-malta-fpga-i2c.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-malta-fpga-i2c.c b/drivers/gpio/gpio-malta-fpga-i2c.c
index 9142248571..8002f7b73a 100644
--- a/drivers/gpio/gpio-malta-fpga-i2c.c
+++ b/drivers/gpio/gpio-malta-fpga-i2c.c
@@ -180,8 +180,4 @@ static struct driver_d malta_i2c_gpio_driver = {
.of_compatible = DRV_OF_COMPAT(malta_i2c_gpio_dt_ids),
};
-static int malta_i2c_gpio_driver_init(void)
-{
- return platform_driver_register(&malta_i2c_gpio_driver);
-}
-coredevice_initcall(malta_i2c_gpio_driver_init);
+coredevice_platform_driver(malta_i2c_gpio_driver);