Skip to content

Commit 5315c0d

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: video: simplify code with acpi_get_local_u64_address()
Now we have a helper so there's no need to open-code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260121084654.2227037-1-andriy.shevchenko@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b862e66 commit 5315c0d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/acpi/acpi_video.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,13 +1134,11 @@ static int acpi_video_bus_get_one_device(struct acpi_device *device, void *arg)
11341134
struct acpi_video_bus *video = arg;
11351135
struct acpi_video_device_attrib *attribute;
11361136
struct acpi_video_device *data;
1137-
unsigned long long device_id;
1138-
acpi_status status;
11391137
int device_type;
1138+
u64 device_id;
11401139

1141-
status = acpi_evaluate_integer(device->handle, "_ADR", NULL, &device_id);
11421140
/* Skip devices without _ADR instead of failing. */
1143-
if (ACPI_FAILURE(status))
1141+
if (acpi_get_local_u64_address(device->handle, &device_id))
11441142
goto exit;
11451143

11461144
data = kzalloc(sizeof(struct acpi_video_device), GFP_KERNEL);

0 commit comments

Comments
 (0)