aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-sc18is602.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c
index 121c2e1dea36..b3ac776def9b 100644
--- a/drivers/spi/spi-sc18is602.c
+++ b/drivers/spi/spi-sc18is602.c
@@ -245,14 +245,6 @@ error:
245 return status; 245 return status;
246} 246}
247 247
248static int sc18is602_setup(struct spi_device *spi)
249{
250 if (spi->mode & ~(SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST))
251 return -EINVAL;
252
253 return sc18is602_check_transfer(spi, NULL, 0);
254}
255
256static int sc18is602_probe(struct i2c_client *client, 248static int sc18is602_probe(struct i2c_client *client,
257 const struct i2c_device_id *id) 249 const struct i2c_device_id *id)
258{ 250{
@@ -306,7 +298,6 @@ static int sc18is602_probe(struct i2c_client *client,
306 master->bus_num = client->adapter->nr; 298 master->bus_num = client->adapter->nr;
307 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; 299 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST;
308 master->bits_per_word_mask = SPI_BPW_MASK(8); 300 master->bits_per_word_mask = SPI_BPW_MASK(8);
309 master->setup = sc18is602_setup;
310 master->transfer_one_message = sc18is602_transfer_one; 301 master->transfer_one_message = sc18is602_transfer_one;
311 master->dev.of_node = np; 302 master->dev.of_node = np;
312 303