diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-04-28 11:05:25 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-05-25 18:42:54 +0200 |
commit | da0dea8912697f725d5f1386a38cb035222e7468 (patch) | |
tree | ed0e894642d3bf7fc6af73184e5c03922894392c /net/compat.c | |
parent | b601a18f12383001e7a8da238de7ca1559ebc450 (diff) | |
download | linux-da0dea8912697f725d5f1386a38cb035222e7468.tar.bz2 |
pwm: spear: Free resources only after pwmchip_remove()
Before pwmchip_remove() returns the PWM is expected to be functional. So
remove the pwmchip before disabling the clocks. The check for
pwmchip_remove()'s return value is dropped as this function returns
effectively always 0 and returning an error in a remove callback is
useless anyhow (as the device core ignores it and drops devm allocated
resources).
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions