]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: fsl-mc: Remove dead code
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 16 Jan 2018 13:19:06 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jan 2018 15:14:39 +0000 (16:14 +0100)
Remove one unused function from irq-gic-v3-its-fsl-mc-msi.c

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-private.h
drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c

index ba31f90cf8363f956602ac84c26a8513dbc2dd87..5b289fd91879e4de10cc1a74169d1701dfac682a 100644 (file)
@@ -460,8 +460,6 @@ void fsl_mc_msi_domain_free_irqs(struct device *dev);
 
 int __init its_fsl_mc_msi_init(void);
 
-void its_fsl_mc_msi_cleanup(void);
-
 int fsl_mc_find_msi_domain(struct device *mc_platform_dev,
                           struct irq_domain **mc_msi_domain);
 
index 6d81ac022ef1fa23e78841bd110e128ba46634ce..0ad14c88054164f6a2d4d9d6178e375fae2fd0f4 100644 (file)
@@ -98,22 +98,3 @@ int __init its_fsl_mc_msi_init(void)
 
        return 0;
 }
-
-void its_fsl_mc_msi_cleanup(void)
-{
-       struct device_node *np;
-
-       for (np = of_find_matching_node(NULL, its_device_id); np;
-            np = of_find_matching_node(np, its_device_id)) {
-               struct irq_domain *mc_msi_domain = irq_find_matching_host(
-                                                       np,
-                                                       DOMAIN_BUS_FSL_MC_MSI);
-
-               if (!of_property_read_bool(np, "msi-controller"))
-                       continue;
-
-               if (mc_msi_domain &&
-                   mc_msi_domain->host_data == &its_fsl_mc_msi_domain_info)
-                       irq_domain_remove(mc_msi_domain);
-       }
-}