From: Jean Delvare Date: Thu, 21 Oct 2010 09:48:47 +0000 (+0200) Subject: panasonic-laptop: Handle errors properly if they happen X-Git-Tag: v2.6.37-rc1~128^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa13857f13c3d5535904781e264d8f9115e30438;p=pandora-kernel.git panasonic-laptop: Handle errors properly if they happen acpi_pcc_retrieve_biosdata() returns success instead of error if HKEY.SINF is invalid. Fix this. Furthermore, if acpi_pcc_retrieve_biosdata() returns an error during device addition, initialization is properly reverted but value 0 is returned, which means success. This would cause a crash when later using or removing the device, so fix this too. Signed-off-by: Jean Delvare Cc: Harald Welte Cc: Bruno Premont Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed