diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-04-29 03:59:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:01 -0400 |
commit | 58b250daff6a24518813975143c8433d9d5b684f (patch) | |
tree | c4225b8f2ffb0c9329aae24d1015a37a67f9a4fd | |
parent | 3202e1811fd312f3f32ddc8f526aa2691b64ec55 (diff) |
remove mca_is_adapter_used()
Remove the no longer used mca_is_adapter_used().
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/mca/mca-legacy.c | 18 | ||||
-rw-r--r-- | include/linux/mca-legacy.h | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/mca/mca-legacy.c b/drivers/mca/mca-legacy.c index 0c7bfa74c8ef..494f0c2001f5 100644 --- a/drivers/mca/mca-legacy.c +++ b/drivers/mca/mca-legacy.c | |||
@@ -282,24 +282,6 @@ void mca_set_adapter_name(int slot, char* name) | |||
282 | EXPORT_SYMBOL(mca_set_adapter_name); | 282 | EXPORT_SYMBOL(mca_set_adapter_name); |
283 | 283 | ||
284 | /** | 284 | /** |
285 | * mca_is_adapter_used - check if claimed by driver | ||
286 | * @slot: slot to check | ||
287 | * | ||
288 | * Returns 1 if the slot has been claimed by a driver | ||
289 | */ | ||
290 | |||
291 | int mca_is_adapter_used(int slot) | ||
292 | { | ||
293 | struct mca_device *mca_dev = mca_find_device_by_slot(slot); | ||
294 | |||
295 | if(!mca_dev) | ||
296 | return 0; | ||
297 | |||
298 | return mca_device_claimed(mca_dev); | ||
299 | } | ||
300 | EXPORT_SYMBOL(mca_is_adapter_used); | ||
301 | |||
302 | /** | ||
303 | * mca_mark_as_used - claim an MCA device | 285 | * mca_mark_as_used - claim an MCA device |
304 | * @slot: slot to claim | 286 | * @slot: slot to claim |
305 | * FIXME: should we make this threadsafe | 287 | * FIXME: should we make this threadsafe |
diff --git a/include/linux/mca-legacy.h b/include/linux/mca-legacy.h index f2bb770e530a..7a3aea845902 100644 --- a/include/linux/mca-legacy.h +++ b/include/linux/mca-legacy.h | |||
@@ -34,7 +34,6 @@ | |||
34 | extern int mca_find_adapter(int id, int start); | 34 | extern int mca_find_adapter(int id, int start); |
35 | extern int mca_find_unused_adapter(int id, int start); | 35 | extern int mca_find_unused_adapter(int id, int start); |
36 | 36 | ||
37 | extern int mca_is_adapter_used(int slot); | ||
38 | extern int mca_mark_as_used(int slot); | 37 | extern int mca_mark_as_used(int slot); |
39 | extern void mca_mark_as_unused(int slot); | 38 | extern void mca_mark_as_unused(int slot); |
40 | 39 | ||