compal-laptop: Use devm_kzalloc to allocate local data structure
authorGuenter Roeck <linux@roeck-us.net>
Sat, 23 Nov 2013 19:03:19 +0000 (11:03 -0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Tue, 21 Jan 2014 13:44:03 +0000 (08:44 -0500)
commitcf508f4496f7dc7c162a8ac4440165d466f68d4b
tree45d67cca763cf5635ada1c5ad3d90ebe111d96d4
parent7da8fb27eff04e7283d24b0e483c300c8b1a9f5c
compal-laptop: Use devm_kzalloc to allocate local data structure

Reduce code size and simplify error path.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/compal-laptop.c