diff options
author | 2017-05-19 09:44:44 +0200 | |
---|---|---|
committer | 2017-06-03 12:04:00 -0700 | |
commit | a4b176ea9ab8b10d976dde61972ac884f888ba56 (patch) | |
tree | 9f214b5c0a457ade1b414725a4ded9a7dfb7ca66 /tools/perf/scripts/python/check-perf-trace.py | |
parent | platform/x86: fujitsu-laptop: use device-specific data in backlight code (diff) | |
download | linux-dev-a4b176ea9ab8b10d976dde61972ac884f888ba56.tar.xz linux-dev-a4b176ea9ab8b10d976dde61972ac884f888ba56.zip |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions