All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip/irq-imx-gpcv2: Remove unused function
@ 2018-02-12 13:12 Fabio Estevam
  2018-02-12 13:22 ` Marc Zyngier
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2018-02-12 13:12 UTC (permalink / raw)
  To: tglx; +Cc: marc.zyngier, andrew.smirnov, linux-kernel, Fabio Estevam

From: Fabio Estevam <fabio.estevam@nxp.com>

imx_gpcv2_get_wakeup_source() is not used anywhere, so remove it.

This fixes the following sparse warning:

drivers/irqchip/irq-imx-gpcv2.c:34:5: warning: symbol 'imx_gpcv2_get_wakeup_source' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/irqchip/irq-imx-gpcv2.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index 675eda5..4760307 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -28,20 +28,6 @@ struct gpcv2_irqchip_data {
 
 static struct gpcv2_irqchip_data *imx_gpcv2_instance;
 
-/*
- * Interface for the low level wakeup code.
- */
-u32 imx_gpcv2_get_wakeup_source(u32 **sources)
-{
-	if (!imx_gpcv2_instance)
-		return 0;
-
-	if (sources)
-		*sources = imx_gpcv2_instance->wakeup_sources;
-
-	return IMR_NUM;
-}
-
 static int gpcv2_wakeup_source_save(void)
 {
 	struct gpcv2_irqchip_data *cd;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-11 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 13:12 [PATCH] irqchip/irq-imx-gpcv2: Remove unused function Fabio Estevam
2018-02-12 13:22 ` Marc Zyngier
2018-03-10 20:31   ` Fabio Estevam
2018-03-11 13:39     ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.