sony-laptop: Avoid oops on module unload for older laptops
authorLawrence Yiu <lawyiu.dev@gmail.com>
Mon, 21 Mar 2016 08:44:22 +0000 (01:44 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 5 May 2016 23:32:32 +0000 (16:32 -0700)
commitddd9357f6017a8c61a20685feab5ce9eee635f6c
treeb98c4344cf99bc598e33f218f6f066a417507a34
parent775d054aba90a2c787d4c081d6369f1fddaae0f4
sony-laptop: Avoid oops on module unload for older laptops

Older VAIO laptops without the SN00 ACPI method will have the "handles"
variable unset. Return early from sony_nc_function_cleanup when "handles"
is null.

Signed-off-by: Lawrence Yiu <lawyiu.dev@gmail.com>
Acked-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/sony-laptop.c