drivers: spi: cc13xx_cc26xx: remove CONFIG_PM guards

API provides no-op fallback when CONFIG_PM=n

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-01-20 16:14:42 +01:00 committed by Carles Cufí
commit b618bdbaad

View file

@ -140,10 +140,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
int err;
spi_context_lock(ctx, false, NULL, config);
#ifdef CONFIG_PM
pm_policy_state_lock_get(PM_STATE_STANDBY);
#endif
err = spi_cc13xx_cc26xx_configure(dev, config);
if (err) {
@ -177,9 +174,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
spi_context_cs_control(ctx, false);
done:
#ifdef CONFIG_PM
pm_policy_state_lock_put(PM_STATE_STANDBY);
#endif
spi_context_release(ctx, err);
return err;
}