* [PATCH] spi: sh-hspi: Remove hspi_cleanup function
@ 2014-02-27 2:27 Axel Lin
2014-02-27 9:07 ` Geert Uytterhoeven
2014-02-27 11:09 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2014-02-27 2:27 UTC (permalink / raw)
To: Mark Brown; +Cc: Kuninori Morimoto, linux-spi-u79uwXL29TY76Z2rM5mHXA
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-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
---
drivers/spi/spi-sh-hspi.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c
index 3c5d3b8..48becd2 100644
--- a/drivers/spi/spi-sh-hspi.c
+++ b/drivers/spi/spi-sh-hspi.c
@@ -46,8 +46,6 @@
/* SPSR */
#define RXFL (1 << 2)
-#define hspi2info(h) (h->dev->platform_data)
-
struct hspi_priv {
void __iomem *addr;
struct spi_master *master;
@@ -230,14 +228,6 @@ static int hspi_transfer_one_message(struct spi_master *master,
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)
{
struct resource *res;
@@ -284,7 +274,6 @@ static int hspi_probe(struct platform_device *pdev)
pm_runtime_enable(&pdev->dev);
master->bus_num = pdev->id;
- master->cleanup = hspi_cleanup;
master->mode_bits = SPI_CPOL | SPI_CPHA;
master->dev.of_node = pdev->dev.of_node;
master->auto_runtime_pm = true;
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] spi: sh-hspi: Remove hspi_cleanup function
2014-02-27 2:27 [PATCH] spi: sh-hspi: Remove hspi_cleanup function Axel Lin
@ 2014-02-27 9:07 ` Geert Uytterhoeven
2014-02-27 11:09 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2014-02-27 9:07 UTC (permalink / raw)
To: Axel Lin; +Cc: Mark Brown, Kuninori Morimoto, linux-spi
On Thu, Feb 27, 2014 at 3:27 AM, Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org> wrote:
> 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-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
Acked-by: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] spi: sh-hspi: Remove hspi_cleanup function
2014-02-27 2:27 [PATCH] spi: sh-hspi: Remove hspi_cleanup function Axel Lin
2014-02-27 9:07 ` Geert Uytterhoeven
@ 2014-02-27 11:09 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2014-02-27 11:09 UTC (permalink / raw)
To: Axel Lin; +Cc: Kuninori Morimoto, linux-spi-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
On Thu, Feb 27, 2014 at 10:27:30AM +0800, Axel Lin wrote:
> hspi_cleanup() is doing nothing except print a non-useful debug message,
> so remove it. Also remove unused hspi2info macro.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-27 11:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 2:27 [PATCH] spi: sh-hspi: Remove hspi_cleanup function Axel Lin
2014-02-27 9:07 ` Geert Uytterhoeven
2014-02-27 11:09 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).