Some drivers use INIT_BOARD_EXPORT, it is not necessary, it is enough to use INIT_DEVICE_EXPORT for genearl drivers. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
@@ -212,4 +212,4 @@ int rt_hw_adc_init(void)
return RT_EOK;
}
-INIT_BOARD_EXPORT(rt_hw_adc_init);
+INIT_DEVICE_EXPORT(rt_hw_adc_init);
@@ -601,4 +601,4 @@ int rt_hw_i2c_init(void)
return result;
-INIT_BOARD_EXPORT(rt_hw_i2c_init);
+INIT_DEVICE_EXPORT(rt_hw_i2c_init);
@@ -335,4 +335,4 @@ int rt_hw_pwm_init(void)
-INIT_BOARD_EXPORT(rt_hw_pwm_init);
+INIT_DEVICE_EXPORT(rt_hw_pwm_init);
@@ -342,4 +342,4 @@ int rt_hw_spi_init(void)
return ret;
-INIT_BOARD_EXPORT(rt_hw_spi_init);
+INIT_DEVICE_EXPORT(rt_hw_spi_init);
@@ -167,4 +167,4 @@ int rt_hw_wdt_init(void)
-INIT_BOARD_EXPORT(rt_hw_wdt_init);
+INIT_DEVICE_EXPORT(rt_hw_wdt_init);