Skip to contentSkip to conversation

remove mca_is_adapter_used()

PATCH New Adrian Bunk 1 participant 1 message Jan 30, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove mca_is_adapter_used()

Ths patch removes the no longer used mca_is_adapter_used().

---

 drivers/mca/mca-legacy.c   |   18 ------------------
 include/linux/mca-legacy.h |    1 -
 2 files changed, 19 deletions(-)

01394d584c7eed507d80eaa881be33512d350851

drivers/mca/mca-legacy.c +0 -18
index 0c7bfa7..494f0c2 100644
@@ -282,24 +282,6 @@ void mca_set_adapter_name(int slot, char* name)
 EXPORT_SYMBOL(mca_set_adapter_name);
 
 /**
- *	mca_is_adapter_used - check if claimed by driver
- *	@slot:	slot to check
- *
- *	Returns 1 if the slot has been claimed by a driver
- */
-
-int mca_is_adapter_used(int slot)
-{
-	struct mca_device *mca_dev = mca_find_device_by_slot(slot);
-
-	if(!mca_dev)
-		return 0;
-
-	return mca_device_claimed(mca_dev);
-}
-EXPORT_SYMBOL(mca_is_adapter_used);
-
-/**
  *	mca_mark_as_used - claim an MCA device
  *	@slot:	slot to claim
  *	FIXME:  should we make this threadsafe
include/linux/mca-legacy.h +0 -1
index f2bb770..7a3aea8 100644
@@ -34,7 +34,6 @@
 extern int mca_find_adapter(int id, int start);
 extern int mca_find_unused_adapter(int id, int start);
 
-extern int mca_is_adapter_used(int slot);
 extern int mca_mark_as_used(int slot);
 extern void mca_mark_as_unused(int slot);