pwm: dwc: Move memory allocation to own function
authorBen Dooks <ben.dooks@sifive.com>
Fri, 23 Dec 2022 15:38:14 +0000 (15:38 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Feb 2023 11:26:34 +0000 (12:26 +0100)
commita357d1493f0c66ce8006dd28c07646d1f891259a
treef34be6c8eebf847fa9abb48b28e0b7f412f4e791
parentf7c843d6d7f82d26ee9efe689f9b3208dbf7ed87
pwm: dwc: Move memory allocation to own function

In preparation for adding other bus support, move the allocation
of the PWM structure out of the main driver code.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-dwc.c