summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell-smbios.c
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2016-01-22 15:27:25 +0100
committerDarren Hart <dvhart@linux.intel.com>2016-03-23 18:05:42 +0100
commit73511ff30c6dc5347ede4c2a2fa5ab22fae3f152 (patch)
tree948fbfd86904fcfa2d25c826534886960e2b6ab3 /drivers/platform/x86/dell-smbios.c
parentdell-laptop: use dell_smbios_find_token() instead of find_token_location() (diff)
downloadlinux-73511ff30c6dc5347ede4c2a2fa5ab22fae3f152.tar.xz
linux-73511ff30c6dc5347ede4c2a2fa5ab22fae3f152.zip
dell-smbios: remove find_token_{id,location}()
As dell-laptop has been changed to use dell_smbios_find_token() instead of find_token_id() and find_token_location(), these functions can be safely removed. Signed-off-by: Michał Kępień <kernel@kempniu.pl> Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/dell-smbios.c')
-rw-r--r--drivers/platform/x86/dell-smbios.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c
index 6a27e4c85a24..c9efa9e017c1 100644
--- a/drivers/platform/x86/dell-smbios.c
+++ b/drivers/platform/x86/dell-smbios.c
@@ -90,31 +90,6 @@ struct calling_interface_token *dell_smbios_find_token(int tokenid)
}
EXPORT_SYMBOL_GPL(dell_smbios_find_token);
-int find_token_id(int tokenid)
-{
- int i;
-
- for (i = 0; i < da_num_tokens; i++) {
- if (da_tokens[i].tokenID == tokenid)
- return i;
- }
-
- return -1;
-}
-EXPORT_SYMBOL_GPL(find_token_id);
-
-int find_token_location(int tokenid)
-{
- int id;
-
- id = find_token_id(tokenid);
- if (id == -1)
- return -1;
-
- return da_tokens[id].location;
-}
-EXPORT_SYMBOL_GPL(find_token_location);
-
static void __init parse_da_table(const struct dmi_header *dm)
{
/* Final token is a terminator, so we don't want to copy it */