drivers/node: Rename note_register to note_initialize
prepare to support the multiple note driver Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
8f3c425067
commit
d7307ef26c
|
@ -85,7 +85,7 @@ void drivers_initialize(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_DRIVER_NOTE)
|
||||
note_register(); /* Non-standard /dev/note */
|
||||
note_initialize(); /* Non-standard /dev/note */
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CLK_RPMSG)
|
||||
|
|
|
@ -26,7 +26,7 @@ endif
|
|||
endif
|
||||
|
||||
ifeq ($(CONFIG_DRIVER_NOTE),y)
|
||||
CSRCS += note_driver.c
|
||||
CSRCS += note_initialize.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DRIVER_NOTERAM),y)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* drivers/note/note_driver.c
|
||||
* drivers/note/note_initialize.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
|
@ -32,7 +32,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: note_register
|
||||
* Name: note_initialize
|
||||
*
|
||||
* Description:
|
||||
* Register sched note related drivers at /dev folder that can be used by
|
||||
|
@ -46,7 +46,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int note_register(void)
|
||||
int note_initialize(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
#if defined(__KERNEL__) || defined(CONFIG_BUILD_FLAT)
|
||||
|
||||
/****************************************************************************
|
||||
* Name: note_register
|
||||
* Name: note_initialize
|
||||
*
|
||||
* Description:
|
||||
* Register sched note related drivers at /dev folder that can be used by
|
||||
|
@ -57,7 +57,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DRIVER_NOTE
|
||||
int note_register(void);
|
||||
int note_initialize(void);
|
||||
#endif
|
||||
|
||||
#endif /* defined(__KERNEL__) || defined(CONFIG_BUILD_FLAT) */
|
||||
|
|
Loading…
Reference in New Issue