pwm: visconti: Simplify using devm_pwmchip_add()
authorzhaoxiao <long870912@gmail.com>
Mon, 13 Sep 2021 06:15:53 +0000 (14:15 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 5 Nov 2021 10:51:41 +0000 (11:51 +0100)
commit6facd84083485dff109f1f78cbf6a1d760efc939
tree8a6014565f078f04c74d750f2ae2fa8d4dde6f0f
parent06dfae38d98891f8f4d55367a049f52d880c038e
pwm: visconti: Simplify using devm_pwmchip_add()

This allows to drop the platform_driver's remove function. This is the
only user of driver data so this can go away, too.

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