From 0f09f38ceaed0ce4f676facb02046095724fb4bf Mon Sep 17 00:00:00 2001 From: Volodymyr Vorobiov Date: Tue, 29 Oct 2019 18:17:27 +0200 Subject: Add mt100eocg spi io --- io-module/spi.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'io-module/spi.c') diff --git a/io-module/spi.c b/io-module/spi.c index 210371c..1244cfc 100644 --- a/io-module/spi.c +++ b/io-module/spi.c @@ -484,11 +484,6 @@ static int mts_spi_dout_probe(struct spi_device *spi) { int tmp; - if (!DEVICE_CAPA(id_eeprom.capa, CAPA_DOUT)) { - log_debug("digital outputs not available"); - return -ENODEV; - } - spi->max_speed_hz = dout_max_speed_hz; spi->mode = 0; @@ -529,12 +524,6 @@ static struct spi_driver mts_spi_dout_driver = { static int mts_spi_din_probe(struct spi_device *spi) { int tmp; - - if (!DEVICE_CAPA(id_eeprom.capa, CAPA_DIN)) { - log_debug("digital inputs not available"); - return -ENODEV; - } - spi->max_speed_hz = din_max_speed_hz; spi->mode = SPI_CPOL; -- cgit v1.2.3