Skip to content

Commit a814dcc

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI / utils: Move acpi_dev_get_first_match_dev() under CONFIG_ACPI
We have a stub defined for the acpi_dev_get_first_match_dev() in acpi.h for the case when CONFIG_ACPI=n. Moreover, acpi_dev_put(), counterpart function, is already placed under CONFIG_ACPI. Thus, move acpi_dev_get_first_match_dev() under CONFIG_ACPI as well. Fixes: 817b4d6 ("ACPI / utils: Introduce acpi_dev_get_first_match_dev() helper") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Cc: 5.2+ <[email protected]> # 5.2+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 8373f8c commit a814dcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/acpi/acpi_bus.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ acpi_evaluate_dsm_typed(acpi_handle handle, const guid_t *guid, u64 rev,
7878
bool acpi_dev_found(const char *hid);
7979
bool acpi_dev_present(const char *hid, const char *uid, s64 hrv);
8080

81-
struct acpi_device *
82-
acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv);
83-
8481
#ifdef CONFIG_ACPI
8582

8683
#include <linux/proc_fs.h>
@@ -683,6 +680,9 @@ static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
683680
adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
684681
}
685682

683+
struct acpi_device *
684+
acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv);
685+
686686
static inline void acpi_dev_put(struct acpi_device *adev)
687687
{
688688
put_device(&adev->dev);

0 commit comments

Comments
 (0)