unicore32: pwm: Use managed resource allocations
This commit uses the managed resource allocation functions to simplify the cleanup paths on error and removal. Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de> Tested-by: NQin Rui <qinrui@mprc.pku.edu.cn> Acked-by: NGuan Xuetao <gxt@mprc.pku.edu.cn>
Showing
想要评论请 注册 或 登录