From: Rafael J. Wysocki Date: Thu, 23 May 2013 08:38:55 +0000 (+0200) Subject: Driver core / memory: Simplify __memory_block_change_state() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~19^2~19^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c064b25ad07169b2892a733918e6b941bf3366;p=pandora-kernel.git Driver core / memory: Simplify __memory_block_change_state() As noted by Tang Chen, the last_online field in struct memory_block introduced by commit 4960e05 (Driver core: Introduce offline/online callbacks for memory blocks) is not really necessary, because online_pages() restores the previous state if passed ONLINE_KEEP as the last argument. Therefore, remove that field along with the code referring to it. References: http://marc.info/?l=linux-kernel&m=136919777305599&w=2 Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman Reviewed-by: Tang Chen --- Reading git-diff-tree failed