summaryrefslogtreecommitdiff
path: root/driver/retimer/bb_retimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/retimer/bb_retimer.c')
-rw-r--r--driver/retimer/bb_retimer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/retimer/bb_retimer.c b/driver/retimer/bb_retimer.c
index 0b203c0175..a43f9e715c 100644
--- a/driver/retimer/bb_retimer.c
+++ b/driver/retimer/bb_retimer.c
@@ -37,7 +37,7 @@
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args)
/* Mutex for shared NVM access */
-static struct mutex bb_nvm_mutex;
+static mutex_t bb_nvm_mutex;
/**
* Utility functions
@@ -474,6 +474,8 @@ static int retimer_init(const struct usb_mux *me)
int rv;
uint32_t data;
+ (void)k_mutex_init(&bb_nvm_mutex);
+
/* Burnside Bridge is powered by main AP rail */
if (chipset_in_or_transitioning_to_state(CHIPSET_STATE_ANY_OFF)) {
/* Ensure reset is asserted while chip is not powered */