dell-laptop: fix error return code in dell_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 9 May 2013 02:03:02 +0000 (10:03 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Mon, 8 Jul 2013 15:46:58 +0000 (11:46 -0400)
commit9f2082025902b59193dbdcd63550c1e8bc58e706
treeeb31dff6935aebcd116771ec89aec1fb7c1a479d
parentb253c9d1d858a3f115f791ee4fe2b9399ae7dbbd
dell-laptop: fix error return code in dell_init()

Fix to return -ENOMEM in the alloc_page() error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/dell-laptop.c