Message ID | 20230725081945.396310-1-u.kleine-koenig@pengutronix.de |
---|---|
State | Accepted |
Headers | show |
Series | pwm: Remove outdated documentation for pwmchip_remove() | expand |
On Tue, 25 Jul 2023 10:19:45 +0200, Uwe Kleine-König wrote: > pwmchip_remove() returns void since some time but the documentation still > mentions the situations where it used to return an error code. Just remove > this old and now wrong text. > > Applied, thanks! [1/1] pwm: Remove outdated documentation for pwmchip_remove() commit: 018121e655c8ac2b369f70758dbddf7a37ef534f Best regards,
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 3639d84c492d..4887154f6c7e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -312,10 +312,7 @@ EXPORT_SYMBOL_GPL(pwmchip_add); * pwmchip_remove() - remove a PWM chip * @chip: the PWM chip to remove * - * Removes a PWM chip. This function may return busy if the PWM chip provides - * a PWM device that is still requested. - * - * Returns: 0 on success or a negative error code on failure. + * Removes a PWM chip. */ void pwmchip_remove(struct pwm_chip *chip) {
pwmchip_remove() returns void since some time but the documentation still mentions the situations where it used to return an error code. Just remove this old and now wrong text. Fixes: 8083f58d08fd ("pwm: Make pwmchip_remove() return void") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> --- drivers/pwm/core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 prerequisite-patch-id: 9faadf66e8ea1bf1622bd303d59d90251d7dea05