From b6f67285e942737fdddae7dae5acaa2045c1bead Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Thu, 24 Oct 2024 11:52:36 +0800 Subject: [DM/FIXUP] remove OFW switch macros The drivers will support OFW and name probe both. We should make build OK when OFW is disable. Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/include/drivers/platform.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'components/drivers/include') diff --git a/components/drivers/include/drivers/platform.h b/components/drivers/include/drivers/platform.h index 5dac6762b5..ba927fee7d 100644 --- a/components/drivers/include/drivers/platform.h +++ b/components/drivers/include/drivers/platform.h @@ -12,10 +12,7 @@ #ifndef __PLATFORM_H__ #define __PLATFORM_H__ -#ifdef RT_USING_OFW #include -#endif - #include struct rt_platform_device @@ -25,10 +22,7 @@ struct rt_platform_device int dev_id; const char *name; - -#ifdef RT_USING_OFW const struct rt_ofw_node_id *id; -#endif void *priv; }; @@ -38,10 +32,7 @@ struct rt_platform_driver struct rt_driver parent; const char *name; - -#ifdef RT_USING_OFW const struct rt_ofw_node_id *ids; -#endif rt_err_t (*probe)(struct rt_platform_device *pdev); rt_err_t (*remove)(struct rt_platform_device *pdev); -- cgit v1.3.1