mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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>
This commit is contained in:
parent
b862e66a9c
commit
5315c0ddbe
1 changed files with 2 additions and 4 deletions
|
|
@ -1134,13 +1134,11 @@ static int acpi_video_bus_get_one_device(struct acpi_device *device, void *arg)
|
|||
struct acpi_video_bus *video = arg;
|
||||
struct acpi_video_device_attrib *attribute;
|
||||
struct acpi_video_device *data;
|
||||
unsigned long long device_id;
|
||||
acpi_status status;
|
||||
int device_type;
|
||||
u64 device_id;
|
||||
|
||||
status = acpi_evaluate_integer(device->handle, "_ADR", NULL, &device_id);
|
||||
/* Skip devices without _ADR instead of failing. */
|
||||
if (ACPI_FAILURE(status))
|
||||
if (acpi_get_local_u64_address(device->handle, &device_id))
|
||||
goto exit;
|
||||
|
||||
data = kzalloc(sizeof(struct acpi_video_device), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue