Skip to content

Commit

Permalink
irqchip/irq-imx-gpcv2: Remove unused function
Browse files Browse the repository at this point in the history
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?

Fixes: e324c4d ("irqchip/imx-gpcv2: IMX GPCv2 driver for wakeup sources")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Fabio Estevam authored and Marc Zyngier committed Mar 11, 2018
1 parent 4f2c758 commit 61b8b22
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions drivers/irqchip/irq-imx-gpcv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61b8b22

Please sign in to comment.