]> git.karo-electronics.de Git - linux-beck.git/commit
unicore32: pwm: Use managed resource allocations
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 30 Aug 2012 13:52:28 +0000 (15:52 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 5 Oct 2012 18:56:41 +0000 (20:56 +0200)
commit5384e27317016bd30aa7a7a7513f76ce7caa3b09
tree89cddff02878fac9146aef62ae438651353ffbd9
parente551fadef3650c34137e90f17963ca613b8f8610
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: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Qin Rui <qinrui@mprc.pku.edu.cn>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
arch/unicore32/kernel/pwm.c