hw/mcu/nrf5340_net: Remove enable/disable from init
@@ -466,15 +466,6 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type)
return EINVAL;
}
- rc = hal_spi_disable(spi_num);
- if (rc) {
- return rc;
- }
- rc = hal_spi_enable(spi_num);
- if (rc) {
- return rc;
- }
-
return hal_spi_init_master(spi, (struct nrf5340_net_hal_spi_cfg *)cfg);
#endif
@@ -483,11 +474,6 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type)
return EINVAL;
}
- rc = hal_spi_disable(spi_num);
- if (rc) {
- return rc;
- }
-
return hal_spi_init_slave(spi, (struct nrf5340_net_hal_spi_cfg *)cfg);
#endif
}
