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)
commitbf7696a12071afaca0139d7b8b9eadfc77252876
treeac49357f16fdc4f5cd506002e61a2ed1dbc9067c
parent3aeeb37569a983a1254d7d908e9b1a279765bf67
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