aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-sh-hspi.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-26 21:27:30 -0500
committerMark Brown <broonie@linaro.org>2014-02-27 06:08:51 -0500
commit80d68ca5a52176a140e1daa527d0b698feb69c83 (patch)
tree5ff8d135e0e080be35c7c08765c2a09ffb6dbdc2 /drivers/spi/spi-sh-hspi.c
parent4522193698d115761f9e4f340697f86975ac8e69 (diff)
spi: sh-hspi: Remove hspi_cleanup function
hspi_cleanup() is doing nothing except print a non-useful debug message, so remove it. Also remove unused hspi2info macro. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
-rw-r--r--drivers/spi/spi-sh-hspi.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c
index dbd2c44f95e9..dad800b9887f 100644
--- a/drivers/spi/spi-sh-hspi.c
+++ b/drivers/spi/spi-sh-hspi.c
@@ -46,8 +46,6 @@
46/* SPSR */ 46/* SPSR */
47#define RXFL (1 << 2) 47#define RXFL (1 << 2)
48 48
49#define hspi2info(h) (h->dev->platform_data)
50
51struct hspi_priv { 49struct hspi_priv {
52 void __iomem *addr; 50 void __iomem *addr;
53 struct spi_master *master; 51 struct spi_master *master;
@@ -230,14 +228,6 @@ static int hspi_transfer_one_message(struct spi_master *master,
230 return ret; 228 return ret;
231} 229}
232 230
233static void hspi_cleanup(struct spi_device *spi)
234{
235 struct hspi_priv *hspi = spi_master_get_devdata(spi->master);
236 struct device *dev = hspi->dev;
237
238 dev_dbg(dev, "%s cleanup\n", spi->modalias);
239}
240
241static int hspi_probe(struct platform_device *pdev) 231static int hspi_probe(struct platform_device *pdev)
242{ 232{
243 struct resource *res; 233 struct resource *res;
@@ -285,7 +275,6 @@ static int hspi_probe(struct platform_device *pdev)
285 275
286 master->num_chipselect = 1; 276 master->num_chipselect = 1;
287 master->bus_num = pdev->id; 277 master->bus_num = pdev->id;
288 master->cleanup = hspi_cleanup;
289 master->mode_bits = SPI_CPOL | SPI_CPHA; 278 master->mode_bits = SPI_CPOL | SPI_CPHA;
290 master->dev.of_node = pdev->dev.of_node; 279 master->dev.of_node = pdev->dev.of_node;
291 master->auto_runtime_pm = true; 280 master->auto_runtime_pm = true;