Skip to content

Commit

Permalink
ALSA: hda: intel-sdw-acpi: use acpi_get_local_u64_address()
Browse files Browse the repository at this point in the history
Now we have a helper so there's no need to open-code.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Péter Ujfalusi <[email protected]>
Reviewed-by: Bard Liao <[email protected]>
  • Loading branch information
plbossart committed May 27, 2024
1 parent 2d74c29 commit 20a85c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/hda/intel-sdw-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level,
void *cdata, void **return_value)
{
struct sdw_intel_acpi_info *info = cdata;
acpi_status status;
u64 adr;
int ret;

status = acpi_evaluate_integer(handle, METHOD_NAME__ADR, NULL, &adr);
if (ACPI_FAILURE(status))
ret = acpi_get_local_u64_address(handle, &adr);
if (ret < 0)
return AE_OK; /* keep going */

if (!acpi_fetch_acpi_dev(handle)) {
Expand Down

0 comments on commit 20a85c0

Please sign in to comment.