zephyr/main: always call sys_clock_disable()
Build-time conditional call is not needed anymore since the empty
sys_clock_disable() callback is provided if the platform
doesn't support system clock disable capability.
Reference:
https://github.com/zephyrproject-rtos/zephyr/commit/78dc8ce33828b1d995d520751fe761ade6103155
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/boot/zephyr/main.c b/boot/zephyr/main.c
index 6977642..cc726c5 100644
--- a/boot/zephyr/main.c
+++ b/boot/zephyr/main.c
@@ -159,8 +159,6 @@
uint32_t reset;
};
-extern void sys_clock_disable(void);
-
static void do_boot(struct boot_rsp *rsp)
{
struct arm_vector_table *vt;
@@ -179,9 +177,8 @@
rsp->br_image_off +
rsp->br_hdr->ih_hdr_size);
-#ifdef CONFIG_SYS_CLOCK_EXISTS
sys_clock_disable();
-#endif
+
#ifdef CONFIG_USB_DEVICE_STACK
/* Disable the USB to prevent it from firing interrupts */
usb_disable();