]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mei: vsc: Drop unused vsc_tp_request_irq() and vsc_tp_free_irq()
authorHans de Goede <hansg@kernel.org>
Mon, 23 Jun 2025 08:50:43 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 15:39:00 +0000 (16:39 +0100)
Drop the unused vsc_tp_request_irq() and vsc_tp_free_irq() functions.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250623085052.12347-2-hansg@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/vsc-tp.c
drivers/misc/mei/vsc-tp.h

index 267d0de5fade83f85ef229691cf0c100924c9927..99a55451e1fc8b852e99ab1ee9debf37b4fb0b50 100644 (file)
@@ -406,37 +406,6 @@ int vsc_tp_register_event_cb(struct vsc_tp *tp, vsc_tp_event_cb_t event_cb,
 }
 EXPORT_SYMBOL_NS_GPL(vsc_tp_register_event_cb, "VSC_TP");
 
-/**
- * vsc_tp_request_irq - request irq for vsc_tp device
- * @tp: vsc_tp device handle
- */
-int vsc_tp_request_irq(struct vsc_tp *tp)
-{
-       struct spi_device *spi = tp->spi;
-       struct device *dev = &spi->dev;
-       int ret;
-
-       irq_set_status_flags(spi->irq, IRQ_DISABLE_UNLAZY);
-       ret = request_threaded_irq(spi->irq, vsc_tp_isr, vsc_tp_thread_isr,
-                                  IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
-                                  dev_name(dev), tp);
-       if (ret)
-               return ret;
-
-       return 0;
-}
-EXPORT_SYMBOL_NS_GPL(vsc_tp_request_irq, "VSC_TP");
-
-/**
- * vsc_tp_free_irq - free irq for vsc_tp device
- * @tp: vsc_tp device handle
- */
-void vsc_tp_free_irq(struct vsc_tp *tp)
-{
-       free_irq(tp->spi->irq, tp);
-}
-EXPORT_SYMBOL_NS_GPL(vsc_tp_free_irq, "VSC_TP");
-
 /**
  * vsc_tp_intr_synchronize - synchronize vsc_tp interrupt
  * @tp: vsc_tp device handle
index 14ca195cbddccf23b15c03556411dbef95a18715..f9513ddc3e409350ffe871af1ad30268226e6225 100644 (file)
@@ -37,9 +37,6 @@ int vsc_tp_xfer(struct vsc_tp *tp, u8 cmd, const void *obuf, size_t olen,
 int vsc_tp_register_event_cb(struct vsc_tp *tp, vsc_tp_event_cb_t event_cb,
                             void *context);
 
-int vsc_tp_request_irq(struct vsc_tp *tp);
-void vsc_tp_free_irq(struct vsc_tp *tp);
-
 void vsc_tp_intr_enable(struct vsc_tp *tp);
 void vsc_tp_intr_disable(struct vsc_tp *tp);
 void vsc_tp_intr_synchronize(struct vsc_tp *tp);