diff options
| author | Michał Kępień <kernel@kempniu.pl> | 2017-05-19 10:44:44 +0300 |
|---|---|---|
| committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-06-03 22:04:00 +0300 |
| commit | a4b176ea9ab8b10d976dde61972ac884f888ba56 (patch) | |
| tree | 9f214b5c0a457ade1b414725a4ded9a7dfb7ca66 /include/linux/moduleloader.h | |
| parent | f2db7c646b716160dbb8832c24d47a35e9ac299a (diff) | |
| download | linux-a4b176ea9ab8b10d976dde61972ac884f888ba56.tar.xz | |
platform/x86: fujitsu-laptop: allocate fujitsu_laptop in acpi_fujitsu_laptop_add()
Only allocate memory for struct fujitsu_laptop when the FUJ02E3 ACPI
device is present. Use devm_kzalloc() for allocating memory to simplify
cleanup.
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include/linux/moduleloader.h')
0 files changed, 0 insertions, 0 deletions
