Skip to content

Commit

Permalink
ACPI: scan: substitute empty_zero_page with helper ZERO_PAGE(0)
Browse files Browse the repository at this point in the history
Not all zero page implementations use empty_zero_page global pointer so
let's substitute empty_zero_page occurence with helper ZERO_PAGE(0).

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Giulio Benetti authored and Rafael J. Wysocki committed Nov 3, 2022
1 parent 30a0b95 commit 9256dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extern struct acpi_device *acpi_root;
#define ACPI_BUS_HID "LNXSYBUS"
#define ACPI_BUS_DEVICE_NAME "System Bus"

#define INVALID_ACPI_HANDLE ((acpi_handle)empty_zero_page)
#define INVALID_ACPI_HANDLE ((acpi_handle)ZERO_PAGE(0))

static const char *dummy_hid = "device";

Expand Down

0 comments on commit 9256dac

Please sign in to comment.