From: Rafael J. Wysocki Date: Wed, 8 May 2013 12:18:37 +0000 (+0200) Subject: Driver core: Introduce offline/online callbacks for memory blocks X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~19^2~19^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4960e05e22604ee270a023f968e0e4f9bd0c6fef;p=pandora-kernel.git Driver core: Introduce offline/online callbacks for memory blocks Introduce .offline() and .online() callbacks for memory_subsys that will allow the generic device_offline() and device_online() to be used with device objects representing memory blocks. That, in turn, allows the ACPI subsystem to use device_offline() to put removable memory blocks offline, if possible, before removing memory modules holding them. The 'online' sysfs attribute of memory block devices will attempt to put them offline if 0 is written to it and will attempt to apply the previously used online type when onlining them (i.e. when 1 is written to it). Signed-off-by: Rafael J. Wysocki Tested-by: Vasilis Liaskovitis Acked-by: Greg Kroah-Hartman Reviewed-by: Toshi Kani --- Reading git-diff-tree failed