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:
parent
a0ade1d856
commit
b618bdbaad
1 changed files with 0 additions and 5 deletions
|
@ -140,10 +140,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
spi_context_lock(ctx, false, NULL, config);
|
spi_context_lock(ctx, false, NULL, config);
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
|
||||||
pm_policy_state_lock_get(PM_STATE_STANDBY);
|
pm_policy_state_lock_get(PM_STATE_STANDBY);
|
||||||
#endif
|
|
||||||
|
|
||||||
err = spi_cc13xx_cc26xx_configure(dev, config);
|
err = spi_cc13xx_cc26xx_configure(dev, config);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -177,9 +174,7 @@ static int spi_cc13xx_cc26xx_transceive(const struct device *dev,
|
||||||
spi_context_cs_control(ctx, false);
|
spi_context_cs_control(ctx, false);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
#ifdef CONFIG_PM
|
|
||||||
pm_policy_state_lock_put(PM_STATE_STANDBY);
|
pm_policy_state_lock_put(PM_STATE_STANDBY);
|
||||||
#endif
|
|
||||||
spi_context_release(ctx, err);
|
spi_context_release(ctx, err);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue