Skip to content

Commit

Permalink
drivers/interrupt_controller: Rename ioapic init function
Browse files Browse the repository at this point in the history
The '_' is not necessary, plus it makes the sys init object name
aligning with all others.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
  • Loading branch information
Tomasz Bursztyka committed May 8, 2020
1 parent bdfbab6 commit 7798173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/interrupt_controller/intc_ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void IoApicRedUpdateLo(unsigned int irq, u32_t value,
*
* @return N/A
*/
int _ioapic_init(struct device *unused)
int ioapic_init(struct device *unused)
{
ARG_UNUSED(unused);
#ifdef CONFIG_IOAPIC_MASK_RTE
Expand Down Expand Up @@ -439,8 +439,8 @@ static void IoApicRedUpdateLo(unsigned int irq,


#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
SYS_DEVICE_DEFINE("ioapic", _ioapic_init, ioapic_device_ctrl, PRE_KERNEL_1,
SYS_DEVICE_DEFINE("ioapic", ioapic_init, ioapic_device_ctrl, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#else
SYS_INIT(_ioapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(ioapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif

0 comments on commit 7798173

Please sign in to comment.