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>
This commit is contained in:
parent
4522193698
commit
80d68ca5a5
1 changed files with 0 additions and 11 deletions
|
@ -46,8 +46,6 @@
|
||||||
/* SPSR */
|
/* SPSR */
|
||||||
#define RXFL (1 << 2)
|
#define RXFL (1 << 2)
|
||||||
|
|
||||||
#define hspi2info(h) (h->dev->platform_data)
|
|
||||||
|
|
||||||
struct hspi_priv {
|
struct hspi_priv {
|
||||||
void __iomem *addr;
|
void __iomem *addr;
|
||||||
struct spi_master *master;
|
struct spi_master *master;
|
||||||
|
@ -230,14 +228,6 @@ static int hspi_transfer_one_message(struct spi_master *master,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hspi_cleanup(struct spi_device *spi)
|
|
||||||
{
|
|
||||||
struct hspi_priv *hspi = spi_master_get_devdata(spi->master);
|
|
||||||
struct device *dev = hspi->dev;
|
|
||||||
|
|
||||||
dev_dbg(dev, "%s cleanup\n", spi->modalias);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int hspi_probe(struct platform_device *pdev)
|
static int hspi_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
@ -285,7 +275,6 @@ static int hspi_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
master->num_chipselect = 1;
|
master->num_chipselect = 1;
|
||||||
master->bus_num = pdev->id;
|
master->bus_num = pdev->id;
|
||||||
master->cleanup = hspi_cleanup;
|
|
||||||
master->mode_bits = SPI_CPOL | SPI_CPHA;
|
master->mode_bits = SPI_CPOL | SPI_CPHA;
|
||||||
master->dev.of_node = pdev->dev.of_node;
|
master->dev.of_node = pdev->dev.of_node;
|
||||||
master->auto_runtime_pm = true;
|
master->auto_runtime_pm = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue