Skip to content

Commit 5493f41

Browse files
committed
[nrf fromlist] drivers: clock_control: Updated nrfx_clock_* error codes.
Updated nrfx_clock_* error codes. Upstream PR #: 98908 Signed-off-by: Michal Frankiewicz <[email protected]>
1 parent a0491b6 commit 5493f41

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

drivers/clock_control/clock_control_nrf.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@ static void hfclkaudio_init(void)
800800

801801
static int clk_init(const struct device *dev)
802802
{
803-
nrfx_err_t nrfx_err;
804803
int err;
805804
static const struct onoff_transitions transitions = {
806805
.start = onoff_start,
@@ -814,8 +813,7 @@ static int clk_init(const struct device *dev)
814813
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
815814
nrfx_isr, nrfx_power_clock_irq_handler, 0);
816815

817-
nrfx_err = nrfx_clock_init(clock_event_handler);
818-
if (nrfx_err != NRFX_SUCCESS) {
816+
if (nrfx_clock_init(clock_event_handler) != 0) {
819817
return -EIO;
820818
}
821819

samples/net/zperf/src/nrf5340_cpu_boost.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static int nrf53_cpu_boost(void)
2222

2323
/* For optimal performance, the CPU frequency should be set to 128 MHz */
2424
err = nrfx_clock_divider_set(NRF_CLOCK_DOMAIN_HFCLK, NRF_CLOCK_HFCLK_DIV_1);
25-
err -= NRFX_ERROR_BASE_NUM;
2625
if (err != 0) {
2726
LOG_WRN("Failed to set 128 MHz: %d", err);
2827
}

subsys/bluetooth/audio/shell/bap_usb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,6 @@ int bap_usb_init(void)
738738
*/
739739
err = nrfx_clock_divider_set(NRF_CLOCK_DOMAIN_HFCLK, NRF_CLOCK_HFCLK_DIV_1);
740740

741-
err -= NRFX_ERROR_BASE_NUM;
742741
if (err != 0) {
743742
LOG_WRN("Failed to set 128 MHz: %d", err);
744743
}

0 commit comments

Comments
 (0)