]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: Add a stub for devm_pwmchip_add()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 17 Nov 2022 11:08:00 +0000 (13:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:26 +0000 (10:22 +0200)
commit34fe5fbc208fc8576c4276db71d0c145187f7eb5
treeb7a1058fdf24dd57c62420a66697e449b8a7658f
parentf3d2344811fdff1a0107f5dc82c72a0fdb33a037
pwm: Add a stub for devm_pwmchip_add()

commit 88da4e8113110d5f4ebdd2f8cd0899e300cd1954 upstream.

The devm_pwmchip_add() can be called by a module that optionally
instantiates PWM chip. In the case of CONFIG_PWM=n, the compilation
can't be performed. Hence, add a necessary stub.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/pwm.h