aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/dev-path-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/dev-path-parser.c')
-rw-r--r--drivers/firmware/efi/dev-path-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/efi/dev-path-parser.c b/drivers/firmware/efi/dev-path-parser.c
index 85ec99f97841..20123384271c 100644
--- a/drivers/firmware/efi/dev-path-parser.c
+++ b/drivers/firmware/efi/dev-path-parser.c
@@ -17,9 +17,9 @@ struct acpi_hid_uid {
17 char uid[11]; /* UINT_MAX + null byte */ 17 char uid[11]; /* UINT_MAX + null byte */
18}; 18};
19 19
20static int __init match_acpi_dev(struct device *dev, void *data) 20static int __init match_acpi_dev(struct device *dev, const void *data)
21{ 21{
22 struct acpi_hid_uid hid_uid = *(struct acpi_hid_uid *)data; 22 struct acpi_hid_uid hid_uid = *(const struct acpi_hid_uid *)data;
23 struct acpi_device *adev = to_acpi_device(dev); 23 struct acpi_device *adev = to_acpi_device(dev);
24 24
25 if (acpi_match_device_ids(adev, hid_uid.hid)) 25 if (acpi_match_device_ids(adev, hid_uid.hid))