2008-03-30 23:15:54

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] edac_pci.c: cleanups

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 <[email protected]>

---

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();