Skip to content

Commit

Permalink
remove mca_is_adapter_used()
Browse files Browse the repository at this point in the history
Remove the no longer used mca_is_adapter_used().

Signed-off-by: Adrian Bunk <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and torvalds committed Apr 29, 2008
1 parent 3202e18 commit 58b250d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions drivers/mca/mca-legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,24 +281,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
Expand Down
1 change: 0 additions & 1 deletion include/linux/mca-legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 58b250d

Please sign in to comment.