From: Mike McCormack Date: Thu, 13 May 2010 06:12:52 +0000 (+0000) Subject: sky2: Avoid allocating memory in sky2_resume X-Git-Tag: v2.6.35-rc1~473^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3403aca2320274dc5c617dc2f0cc358771a51be9;p=pandora-kernel.git sky2: Avoid allocating memory in sky2_resume Allocating memory can fail, and since we have the memory we need in sky2_resume when sky2_suspend is called, just stop the hardware without freeing the memory it's using. This avoids the possibility of failing because we can't allocate memory in sky2_resume(), and allows sharing code with sky2_restart(). Signed-off-by: Mike McCormack Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed