]> git.baikalelectronics.ru Git - kernel.git/commit
acpi: lpss: call pwm_add_table() for BSW PWM device
authorHans de Goede <hdegoede@redhat.com>
Sun, 22 Jan 2017 16:14:09 +0000 (17:14 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 10 Feb 2017 14:15:38 +0000 (15:15 +0100)
commit4c12d0233d878b81b4267e6b507f801e16114873
treeac49357f16fdc4f5cd506002e61a2ed1dbc9067c
parent2763f18cb755a30fae52bc1600bf99a125c3cfed
acpi: lpss: call pwm_add_table() for BSW PWM device

On x86 we do not have devicetree to link the PWM controller and
the display controller together. So someone needs to call
pwm_add_table() to create the link, so that the i915 driver's
pwm_get(dev, "pwm_backlight") call returns the lpss' pwm0.

The PWM subsystem does not want to have pwm_add_table() calls
directly in PWM drivers (this leads to probe ordering issues),
so lets do it here since the acpi-lpss code is always builtin.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/acpi/acpi_lpss.c