[bsp][stm32] fix drv_pwm.c device register usefault
[bsp][stm32] fix drv_pwm.c device register usefault

Signed-off-by: MurphyZhao <5b5b4ad02826b6fdafa74f6b8c96f0e9a9b623a4@163.com>

weiyuliang/rt-thread,weiyuliang/rt-thread,armink/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,weety/rt-thread,RT-Thread/rt-thread,gbcwbz/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,weety/rt-thread,hezlog/rt-thread,hezlog/rt-thread,ArdaFu/rt-thread,ArdaFu/rt-thread,geniusgogo/rt-thread,armink/rt-thread,ArdaFu/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,geniusgogo/rt-thread,armink/rt-thread,nongxiaoming/rt-thread,gbcwbz/rt-thread,ArdaFu/rt-thread,hezlog/rt-thread,hezlog/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,gbcwbz/rt-thread,ArdaFu/rt-thread,nongxiaoming/rt-thread,weety/rt-thread,hezlog/rt-thread,gbcwbz/rt-thread,FlyLu/rt-thread,RT-Thread/rt-thread,weety/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,FlyLu/rt-thread,FlyLu/rt-thread,armink/rt-thread,FlyLu/rt-thread,weiyuliang/rt-thread,weety/rt-thread,weiyuliang/rt-thread,gbcwbz/rt-thread,gbcwbz/rt-thread,weiyuliang/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,FlyLu/rt-thread,FlyLu/rt-thread,weety/rt-thread,armink/rt-thread,armink/rt-thread,hezlog/rt-thread,hezlog/rt-thread,weiyuliang/rt-thread,gbcwbz/rt-thread,weiyuliang/rt-thread,nongxiaoming/rt-thread,nongxiaoming/rt-thread,ArdaFu/rt-thread,armink/rt-thread,ArdaFu/rt-thread,weety/rt-thread,FlyLu/rt-thread