aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-05-19 09:44:42 +0200
committerDarren Hart (VMware) <dvhart@infradead.org>2017-06-03 12:03:26 -0700
commit679374e49c6f6691f5b19751b3a2e36cba0c4a4d (patch)
treeb0e0c8118cd9128af7a83fb229f3352bea3eac27 /tools/perf/scripts/python/syscall-counts.py
parentplatform/x86: fujitsu-laptop: distinguish current uses of device-specific data (diff)
downloadlinux-dev-679374e49c6f6691f5b19751b3a2e36cba0c4a4d.tar.xz
linux-dev-679374e49c6f6691f5b19751b3a2e36cba0c4a4d.zip
platform/x86: fujitsu-laptop: allocate fujitsu_bl in acpi_fujitsu_bl_add()
Only allocate memory for struct fujitsu_bl when the FUJ02B1 ACPI device is present. Use devm_kzalloc() for allocating memory to simplify cleanup. Due to the fact that the power property of the backlight device created by the backlight driver is accessed from acpi_fujitsu_laptop_add(), pointer to the allocated memory will remain stored in a module-wide variable until the backlight driver is extracted into a separate module. 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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions