Skip to content

Commit 6595b47

Browse files
committed
device: remove duplicate code
API z_device_state_init has already defined in init.c Signed-off-by: liuqian.andy <liuqian.andy@picoheart.com>
1 parent 0f9932a commit 6595b47

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

kernel/device.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
#include <zephyr/toolchain.h>
1616
#include <zephyr/pm/device_runtime.h>
1717

18-
/**
19-
* @brief Initialize state for all static devices.
20-
*
21-
* The state object is always zero-initialized, but this may not be
22-
* sufficient.
23-
*/
24-
void z_device_state_init(void)
25-
{
26-
STRUCT_SECTION_FOREACH(device, dev) {
27-
k_object_init(dev);
28-
}
29-
}
30-
3118
int do_device_init(const struct device *dev)
3219
{
3320
int rc = 0;

0 commit comments

Comments
 (0)