diff options
| author | zms123456 <[email protected]> | 2023-10-18 20:50:30 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-18 20:50:30 +0800 |
| commit | d01dd05a0cd2107d85e26a445a43957880fd1978 (patch) | |
| tree | b6d6f631e427d608b9a09b22e9dbc0e7fb61c084 /components/drivers/ofw | |
| parent | dd33b31c280124526dc7aaf7c11e4b1eadf9d6b3 (diff) | |
[kernel][dm]适配新的设备驱动模型 (#8075)
Diffstat (limited to 'components/drivers/ofw')
| -rw-r--r-- | components/drivers/ofw/base.c | 3 | ||||
| -rwxr-xr-x | components/drivers/ofw/fdt.c | 3 | ||||
| -rwxr-xr-x | components/drivers/ofw/irq.c | 1 | ||||
| -rwxr-xr-x | components/drivers/ofw/ofw.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/components/drivers/ofw/base.c b/components/drivers/ofw/base.c index 6f8f20e806..2e95741e5f 100644 --- a/components/drivers/ofw/base.c +++ b/components/drivers/ofw/base.c @@ -8,9 +8,10 @@ * 2022-08-25 GuEe-GUI first version */ +#define _GNU_SOURCE + #include <rtthread.h> -#include <string.h> #include <drivers/ofw.h> #include <drivers/ofw_io.h> #include <drivers/ofw_fdt.h> diff --git a/components/drivers/ofw/fdt.c b/components/drivers/ofw/fdt.c index d64feec9cd..3fa721b74b 100755 --- a/components/drivers/ofw/fdt.c +++ b/components/drivers/ofw/fdt.c @@ -8,10 +8,11 @@ * 2022-08-25 GuEe-GUI first version */ +#define _GNU_SOURCE + #include <rthw.h> #include <rtthread.h> -#include <string.h> #include <drivers/ofw_fdt.h> #include <drivers/ofw_raw.h> #include <drivers/core/dm.h> diff --git a/components/drivers/ofw/irq.c b/components/drivers/ofw/irq.c index 97483d8a5e..6460c5e19f 100755 --- a/components/drivers/ofw/irq.c +++ b/components/drivers/ofw/irq.c @@ -10,7 +10,6 @@ #include <rtthread.h> -#include <string.h> #include <drivers/pic.h> #include <drivers/ofw.h> #include <drivers/ofw_io.h> diff --git a/components/drivers/ofw/ofw.c b/components/drivers/ofw/ofw.c index 88a5fe963d..cd9532349d 100755 --- a/components/drivers/ofw/ofw.c +++ b/components/drivers/ofw/ofw.c @@ -10,6 +10,8 @@ #include <rtthread.h> #include <rtdevice.h> +#include <drivers/platform.h> +#include <drivers/core/bus.h> #define DBG_TAG "rtdm.ofw" #define DBG_LVL DBG_INFO |
