[2.6 patch] edac_pci.c: cleanups

From: Adrian Bunk
Date: Sun Mar 30 2008 - 19:15:55 EST


This patch contains the following cleanups:
- make the needlessly global edac_pci_generic_check() static
- #if 0 the unused edac_pci_find()

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---

drivers/edac/edac_pci.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

37bdf6bee01d96d41f25c8d4001fd6817d3bb91b diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c
index 32be435..4efa7f2 100644
--- a/drivers/edac/edac_pci.c
+++ b/drivers/edac/edac_pci.c
@@ -189,6 +189,7 @@ static void del_edac_pci_from_global_list(struct edac_pci_ctl_info *pci)
wait_for_completion(&pci->complete);
}

+#if 0
/*
* edac_pci_find()
* Search for an edac_pci_ctl_info structure whose index is 'idx'
@@ -219,6 +220,7 @@ struct edac_pci_ctl_info *edac_pci_find(int idx)
return NULL;
}
EXPORT_SYMBOL_GPL(edac_pci_find);
+#endif /* 0 */

/*
* edac_pci_workq_function()
@@ -422,7 +424,7 @@ EXPORT_SYMBOL_GPL(edac_pci_del_device);
*
* a Generic parity check API
*/
-void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
+static void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
{
debugf4("%s()\n", __func__);
edac_pci_do_parity_check();

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/