diff options
Diffstat (limited to 'drivers/base/physical_location.c')
| -rw-r--r-- | drivers/base/physical_location.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/physical_location.c b/drivers/base/physical_location.c index 06a2797e0213..2e723fff6e8a 100644 --- a/drivers/base/physical_location.c +++ b/drivers/base/physical_location.c @@ -21,8 +21,7 @@ bool dev_add_physical_location(struct device *dev) if (!acpi_get_physical_device_location(ACPI_HANDLE(dev), &pld)) return false; - dev->physical_location = kzalloc_obj(*dev->physical_location, - GFP_KERNEL); + dev->physical_location = kzalloc_obj(*dev->physical_location); if (!dev->physical_location) { ACPI_FREE(pld); return false; |
