Skip to content

Commit

Permalink
Add update to SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
davewhitters committed Dec 20, 2021
1 parent 287ff9e commit fa2de53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion host/linux/host_driver/esp32/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ static int __init esp_init(void)
/* Create the char devices */
ret = esp_serial_init((void *)adapter);
if (ret != 0) {
printk(KERN_ERR "Error initialising sdio char devices!\n");
printk(KERN_ERR "Error initialising serial char devices!\n");
return ret;
}
#endif
Expand Down
13 changes: 0 additions & 13 deletions host/linux/host_driver/esp32/spi/esp_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
#include "esp_if.h"
#include "esp_api.h"
#include "esp_bt_api.h"
#ifdef CONFIG_SUPPORT_ESP_SERIAL
#include "esp_serial.h"
#endif

#define SPI_INITIAL_CLK_MHZ 10
#define NUMBER_1M 1000000
Expand Down Expand Up @@ -493,15 +490,6 @@ static int spi_init(void)
return status;
}

#ifdef CONFIG_SUPPORT_ESP_SERIAL
status = esp_serial_init((void *) spi_context.adapter);
if (status != 0) {
spi_exit();
printk(KERN_ERR "Error initialising serial interface\n");
return status;
}
#endif

status = esp_add_card(spi_context.adapter);
if (status) {
spi_exit();
Expand Down Expand Up @@ -530,7 +518,6 @@ static void spi_exit(void)
spi_context.spi_workqueue = NULL;
}

esp_serial_cleanup();
esp_remove_card(spi_context.adapter);

if (spi_context.adapter->hcidev)
Expand Down

0 comments on commit fa2de53

Please sign in to comment.