Skip to content

Commit 257f905

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI / utils: Remove deprecated function since no user left
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]>
1 parent b664e6f commit 257f905

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

drivers/acpi/utils.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -835,22 +835,6 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
835835
}
836836
EXPORT_SYMBOL(acpi_dev_get_first_match_dev);
837837

838-
/* DEPRECATED, use acpi_dev_get_first_match_dev() instead */
839-
const char *
840-
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv)
841-
{
842-
struct acpi_dev_match_info match = {};
843-
struct device *dev;
844-
845-
strlcpy(match.hid[0].id, hid, sizeof(match.hid[0].id));
846-
match.uid = uid;
847-
match.hrv = hrv;
848-
849-
dev = bus_find_device(&acpi_bus_type, NULL, &match, acpi_dev_match_cb);
850-
return dev ? match.dev_name : NULL;
851-
}
852-
EXPORT_SYMBOL(acpi_dev_get_first_match_name);
853-
854838
/*
855839
* acpi_backlight= handling, this is done here rather then in video_detect.c
856840
* because __setup cannot be used in modules.

include/acpi/acpi_bus.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ bool acpi_dev_present(const char *hid, const char *uid, s64 hrv);
9494
struct acpi_device *
9595
acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv);
9696

97-
const char *
98-
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv);
99-
10097
#ifdef CONFIG_ACPI
10198

10299
#include <linux/proc_fs.h>

include/linux/acpi.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -675,12 +675,6 @@ acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
675675
return NULL;
676676
}
677677

678-
static inline const char *
679-
acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv)
680-
{
681-
return NULL;
682-
}
683-
684678
static inline bool is_acpi_node(struct fwnode_handle *fwnode)
685679
{
686680
return false;

0 commit comments

Comments
 (0)