sony-laptop: return a negative error code in sonypi_compat_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 10 Aug 2013 04:11:18 +0000 (13:11 +0900)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 18 Aug 2013 17:23:09 +0000 (13:23 -0400)
commit03a174b35cb6064cd670428f8ea811fc2736a3a6
tree79da2c54ccbe78de5dc4f6bd0dfcfbbd56c338db
parent50e37ccea06ca8846ceb60dbfbe056012c60d71b
sony-laptop: return a negative error code in sonypi_compat_init()

Return -1 in the 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: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/sony-laptop.c