diff options
Diffstat (limited to 'drivers/spi/spi-altera.c')
-rw-r--r-- | drivers/spi/spi-altera.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index a537f8dffc09..6b7096e0ad68 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -103,16 +103,6 @@ static void altera_spi_chipsel(struct spi_device *spi, int value) | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | static int altera_spi_setupxfer(struct spi_device *spi, struct spi_transfer *t) | ||
107 | { | ||
108 | return 0; | ||
109 | } | ||
110 | |||
111 | static int altera_spi_setup(struct spi_device *spi) | ||
112 | { | ||
113 | return 0; | ||
114 | } | ||
115 | |||
116 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) | 106 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) |
117 | { | 107 | { |
118 | if (hw->tx) { | 108 | if (hw->tx) { |
@@ -231,7 +221,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
231 | master->bus_num = pdev->id; | 221 | master->bus_num = pdev->id; |
232 | master->num_chipselect = 16; | 222 | master->num_chipselect = 16; |
233 | master->mode_bits = SPI_CS_HIGH; | 223 | master->mode_bits = SPI_CS_HIGH; |
234 | master->setup = altera_spi_setup; | ||
235 | 224 | ||
236 | hw = spi_master_get_devdata(master); | 225 | hw = spi_master_get_devdata(master); |
237 | platform_set_drvdata(pdev, hw); | 226 | platform_set_drvdata(pdev, hw); |
@@ -240,7 +229,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
240 | hw->bitbang.master = spi_master_get(master); | 229 | hw->bitbang.master = spi_master_get(master); |
241 | if (!hw->bitbang.master) | 230 | if (!hw->bitbang.master) |
242 | return err; | 231 | return err; |
243 | hw->bitbang.setup_transfer = altera_spi_setupxfer; | ||
244 | hw->bitbang.chipselect = altera_spi_chipsel; | 232 | hw->bitbang.chipselect = altera_spi_chipsel; |
245 | hw->bitbang.txrx_bufs = altera_spi_txrx; | 233 | hw->bitbang.txrx_bufs = altera_spi_txrx; |
246 | 234 | ||