atsamd: Use CONFIG_USB instead of CONFIG_USBSERIAL during clock init

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2022-08-16 21:16:08 -04:00
parent 6aec6efcc9
commit 2357221bb4
2 changed files with 2 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ static void
clock_init_internal(void)
{
// Enable USB clock recovery mode if applicable
if (CONFIG_USBSERIAL) {
if (CONFIG_USB) {
// Temporarily switch main clock to internal 32K clock
gen_clock(CLKGEN_MAIN, GCLK_GENCTRL_SRC_OSCULP32K);