unicore32: pwm: Use module_platform_driver()
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 30 Aug 2012 11:43:14 +0000 (13:43 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 5 Oct 2012 18:56:40 +0000 (20:56 +0200)
commitdde9959b8d5b791a3e06e3c44f2d9ba0ec5143f0
treef5b008c23cf365ce10a323090b5b73a09803e4b1
parentd1b6886502160eb771aefe21c1f891597138ddfe
unicore32: pwm: Use module_platform_driver()

Some of the boilerplate code can be eliminated by using this macro. The
driver was previously registered with an arch_initcall(), so technically
this is no longer the same, but when the driver is moved to the PWM
framework, deferred probing will take care of any driver probe ordering
issues.

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