summaryrefslogtreecommitdiff
path: root/include/linux/root_dev.h
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-05-19 10:44:42 +0300
committerDarren Hart (VMware) <dvhart@infradead.org>2017-06-03 22:03:26 +0300
commit679374e49c6f6691f5b19751b3a2e36cba0c4a4d (patch)
treeb0e0c8118cd9128af7a83fb229f3352bea3eac27 /include/linux/root_dev.h
parent7ec3b54d162f5f1794a153e038b3940497579599 (diff)
downloadlinux-679374e49c6f6691f5b19751b3a2e36cba0c4a4d.tar.xz
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 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions