Skip to content

drivers: clock_control: nrf_power_clock: Make isr function global #19673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions drivers/clock_control/nrf_power_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,15 @@ static int clock_start(struct device *dev, clock_control_subsys_t sub_system)
return clock_async_start(dev, sub_system, NULL);
}

static void nrf_power_clock_isr(void *arg);
/* Note: this function has public linkage, and MUST have this
* particular name. The platform architecture itself doesn't care,
* but there is a test (tests/kernel/arm_irq_vector_table) that needs
* to find it to it can set it in a custom vector table. Should
* probably better abstract that at some point (e.g. query and reset
* it by pointer at runtime, maybe?) so we don't have this leaky
* symbol.
*/
void nrf_power_clock_isr(void *arg);

static int hfclk_init(struct device *dev)
{
Expand Down Expand Up @@ -316,15 +324,6 @@ static void usb_power_isr(void)
#endif
}


/* Note: this function has public linkage, and MUST have this
* particular name. The platform architecture itself doesn't care,
* but there is a test (tests/kernel/arm_irq_vector_table) that needs
* to find it to it can set it in a custom vector table. Should
* probably better abstract that at some point (e.g. query and reset
* it by pointer at runtime, maybe?) so we don't have this leaky
* symbol.
*/
void nrf_power_clock_isr(void *arg)
{
ARG_UNUSED(arg);
Expand Down