Commit 90b8f690 authored by Joakim Andersson's avatar Joakim Andersson Committed by Dominik Ermel
Browse files

boot: zephyr: Only call sys_clock_disable when supported



Only call sys_clock_disable when the system clock driver support
this feature.

Signed-off-by: default avatarJoakim Andersson <joakim.andersson@nordicsemi.no>
parent 8f289ba5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,7 +190,9 @@ static void do_boot(struct boot_rsp *rsp)
                                     rsp->br_hdr->ih_hdr_size);
#endif

    if (IS_ENABLED(CONFIG_SYSTEM_TIMER_HAS_DISABLE_SUPPORT)) {
        sys_clock_disable();
    }

#ifdef CONFIG_USB_DEVICE_STACK
    /* Disable the USB to prevent it from firing interrupts */