]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / memhotplug: remove redundant logic of acpi memory hotadd
authorLiu Jinsong <jinsong.liu@intel.com>
Sun, 16 Dec 2012 13:08:41 +0000 (14:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:21 +0000 (13:10 +0100)
commitc915340632b3bd47f9560b8e35a413f0d96bf300
tree4a847446cf5b1d3984b2d78aa0acd379d9802220
parent69e5361cf41622df039138d36cd5434c9996694b
ACPI / memhotplug: remove redundant logic of acpi memory hotadd

When memory hotadd, acpi_memory_enable_device has already been done
at drv->ops.add (acpi_memory_device_add), no need to do it again
at notify callback.

At acpi_memory_enable_device, acpi_memory_get_device_resources
is also a redundant action, since it has been done at drv->ops.add.

Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_memhotplug.c