pwm: imx1: Simplify using devm_pwmchip_add()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 25 May 2021 06:35:28 +0000 (08:35 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 28 Jun 2021 11:24:45 +0000 (13:24 +0200)
commitf7edeb4023efcd6494176095560ddd34f3bab006
treea0c1c0c57c6a0b7004c352bf9b5c9c58aab730dd
parent1bc6ea31cb41d50302a3c9b401964cf0a88d41f9
pwm: imx1: 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-imx1.c