[PATCH 3/5] staging: gasket: remove gasket_interrupt_trigger_eventfd()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No one calls it, so just remove the dead code.

Cc: Rob Springer <rspringer@xxxxxxxxxx>
Cc: John Joseph <jnjoseph@xxxxxxxxxx>
Cc: Ben Chan <benchan@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/gasket/gasket_interrupt.c | 12 ------------
 drivers/staging/gasket/gasket_interrupt.h | 13 -------------
 2 files changed, 25 deletions(-)

diff --git a/drivers/staging/gasket/gasket_interrupt.c b/drivers/staging/gasket/gasket_interrupt.c
index 3ea168fd9b51..691996d84cad 100644
--- a/drivers/staging/gasket/gasket_interrupt.c
+++ b/drivers/staging/gasket/gasket_interrupt.c
@@ -504,18 +504,6 @@ int gasket_interrupt_clear_eventfd(
 	return 0;
 }
 
-int gasket_interrupt_trigger_eventfd(
-	struct gasket_interrupt_data *interrupt_data, int interrupt)
-{
-	struct eventfd_ctx *ctx = interrupt_data->eventfd_ctxs[interrupt];
-
-	if (!ctx)
-		return -EINVAL;
-
-	eventfd_signal(ctx, 1);
-	return 0;
-}
-
 struct msix_entry *gasket_interrupt_get_msix_entries(
 	struct gasket_interrupt_data *interrupt_data)
 {
diff --git a/drivers/staging/gasket/gasket_interrupt.h b/drivers/staging/gasket/gasket_interrupt.h
index f0586a6898ec..5b65d052abc7 100644
--- a/drivers/staging/gasket/gasket_interrupt.h
+++ b/drivers/staging/gasket/gasket_interrupt.h
@@ -101,19 +101,6 @@ int gasket_interrupt_set_eventfd(
 int gasket_interrupt_clear_eventfd(
 	struct gasket_interrupt_data *interrupt_data, int interrupt);
 
-/*
- * Signals the eventfd associated with interrupt.
- * @data: Pointer to device interrupt data.
- * @interrupt: The device interrupt to signal for.
- *
- * Simulates a device interrupt by signaling the eventfd associated with
- * interrupt, if any.
- * Returns 0 if the eventfd was successfully triggered, a negative error code
- * otherwise (if, for example, no eventfd was associated with interrupt).
- */
-int gasket_interrupt_trigger_eventfd(
-	struct gasket_interrupt_data *interrupt_data, int interrupt);
-
 /*
  * The below functions exist for backwards compatibility.
  * No new uses should be written.
-- 
2.18.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux