Skip to content

Commit

Permalink
ACPI / utils: Remove deprecated function since no user left
Browse files Browse the repository at this point in the history
There is no more user of acpi_dev_get_first_match_name(),
which is deprecated and has no user left, so, remove it for good.

Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
andy-shev authored and rafaeljw committed Apr 1, 2019
1 parent b664e6f commit 257f905
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
16 changes: 0 additions & 16 deletions drivers/acpi/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,22 +835,6 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
}
EXPORT_SYMBOL(acpi_dev_get_first_match_dev);

/* DEPRECATED, use acpi_dev_get_first_match_dev() instead */
const char *
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv)
{
struct acpi_dev_match_info match = {};
struct device *dev;

strlcpy(match.hid[0].id, hid, sizeof(match.hid[0].id));
match.uid = uid;
match.hrv = hrv;

dev = bus_find_device(&acpi_bus_type, NULL, &match, acpi_dev_match_cb);
return dev ? match.dev_name : NULL;
}
EXPORT_SYMBOL(acpi_dev_get_first_match_name);

/*
* acpi_backlight= handling, this is done here rather then in video_detect.c
* because __setup cannot be used in modules.
Expand Down
3 changes: 0 additions & 3 deletions include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ bool acpi_dev_present(const char *hid, const char *uid, s64 hrv);
struct acpi_device *
acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv);

const char *
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv);

#ifdef CONFIG_ACPI

#include <linux/proc_fs.h>
Expand Down
6 changes: 0 additions & 6 deletions include/linux/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,6 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
return NULL;
}

static inline const char *
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv)
{
return NULL;
}

static inline bool is_acpi_node(struct fwnode_handle *fwnode)
{
return false;
Expand Down

0 comments on commit 257f905

Please sign in to comment.