summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_pm81.c
diff options
context:
space:
mode:
authorYasunori Goto <y-goto@jp.fujitsu.com>2006-06-27 11:53:29 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-28 02:32:35 +0200
commitdd56a8e36f91f63c0a31e8a118d87b7cf01526b8 (patch)
tree70e70c16e460df0b8da151bfff09e6b637c97b10 /drivers/macintosh/windfarm_pm81.c
parent[PATCH] Catch notification of memory add event of ACPI via container driver. ... (diff)
downloadlinux-dd56a8e36f91f63c0a31e8a118d87b7cf01526b8.tar.xz
linux-dd56a8e36f91f63c0a31e8a118d87b7cf01526b8.zip
[PATCH] Catch notification of memory add event of ACPI via container driver. (avoid redundant call add_memory)
When acpi_memory_device_init() is called at boottime to register struct memory acpi_memory_device, acpi_bus_add() are called via acpi_driver_attach(). But it also calls ops->start() function. It is called even if the memory blocks are initialized at early boottime. In this case add_memory() return -EEXIST, and the memory blocks becomes INVALID state even if it is normal. This is patch to avoid calling add_memory() for already available memory. [akpm@osdl.org: coding cleanups] Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com> Cc: "Brown, Len" <len.brown@intel.com> Cc: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/macintosh/windfarm_pm81.c')
0 files changed, 0 insertions, 0 deletions