pwm: clps711x: Simplify using devm_pwmchip_add()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 23 May 2021 13:34:43 +0000 (15:34 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 28 Jun 2021 11:23:11 +0000 (13:23 +0200)
commit9c6a02e6d5c6b8432acf3c11667fc347c60d2e76
treee71d03a14afa38f850cd41a207e123840ea84c26
parentf41227eb8fb79b2ebdd286c0febc1e6b313095ff
pwm: clps711x: Simplify using devm_pwmchip_add()

With devm_pwmchip_add() we can drop pwmchip_remove() from the device
remove callback. The latter can then go away, too and as this is the
only user of platform_get_drvdata(), the respective call to
platform_set_drvdata() can go, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-clps711x.c