mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 20:40:24 +09:00
pwm: Add a stub for devm_pwmchip_add()
commit 88da4e8113 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f3d2344811
commit
34fe5fbc20
@@ -489,6 +489,11 @@ static inline int pwmchip_remove(struct pwm_chip *chip)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
|
||||
unsigned int index,
|
||||
const char *label)
|
||||
|
||||
Reference in New Issue
Block a user