gpio: htc-egpio: Remove unused exported htc_egpio_get_wakeup_irq()
This function was never used upstream, and is a relic of the original handhelds.org code the htc-egpio driver was based on. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20190910141529.21030-1-geert+renesas@glider.be Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
2efc6bfadb
commit
c34a024e4e
|
@ -118,20 +118,6 @@ static void egpio_handler(struct irq_desc *desc)
|
|||
}
|
||||
}
|
||||
|
||||
int htc_egpio_get_wakeup_irq(struct device *dev)
|
||||
{
|
||||
struct egpio_info *ei = dev_get_drvdata(dev);
|
||||
|
||||
/* Read current pins. */
|
||||
u16 readval = egpio_readw(ei, ei->ack_register);
|
||||
/* Ack/unmask interrupts. */
|
||||
ack_irqs(ei);
|
||||
/* Return first set pin. */
|
||||
readval &= ei->irqs_enabled;
|
||||
return ei->irq_start + ffs(readval) - 1;
|
||||
}
|
||||
EXPORT_SYMBOL(htc_egpio_get_wakeup_irq);
|
||||
|
||||
static inline int egpio_pos(struct egpio_info *ei, int bit)
|
||||
{
|
||||
return bit >> ei->reg_shift;
|
||||
|
|
|
@ -50,7 +50,4 @@ struct htc_egpio_platform_data {
|
|||
int num_chips;
|
||||
};
|
||||
|
||||
/* Determine the wakeup irq, to be called during early resume */
|
||||
extern int htc_egpio_get_wakeup_irq(struct device *dev);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue