diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-07-28 10:11:05 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2023-07-28 10:15:44 +0200 |
commit | b22bb0d6a828b4eab579056647d2f362ac116cf2 (patch) | |
tree | 9ed3c1e97cfb2f3b43b6452880bdc0081d95bb96 /include/linux | |
parent | 8b9d91d23c18423d4e4bda735f20b669fb28115f (diff) | |
download | linux-stable-b22bb0d6a828b4eab579056647d2f362ac116cf2.tar.gz linux-stable-b22bb0d6a828b4eab579056647d2f362ac116cf2.tar.bz2 linux-stable-b22bb0d6a828b4eab579056647d2f362ac116cf2.zip |
pwm: atmel: Simplify using devm functions
For all resources used by the driver there is a devm variant to allocate
these. This simplifies the error path in the probe callback and allows
to drop the remove callback.
While at it also use dev_err_probe() to compact returning an error.
With the remove callback gone, there is no user of driver data left, so
the call to platform_set_drvdata() can also be dropped.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions