s5j/s5j_pwm.c: Fix possible NULL pointer dereference
s5j/s5j_pwm.c: Fix possible NULL pointer dereference

In 's5j_pwminitialize' function, if timer value is invalid,
then it calls 's5j_pwm_reset' with NULL as a pwm dev parameter.
This case leads to NULL pointer dereference in 's5j_pwm_reset' function.

So if timer value is invalid, 's5j_pwminitialize' should return NULL.

Signed-off-by: Lokesh B V <a10c1c2561c872cd1fd5899c4340d5ec87a91507@partner.samsung.com>

sunghan-chang/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,lokeshbv/TizenRT,lokeshbv/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,an4967/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,shivgarg/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,pillip8282/TizenRT,JeongJunSik/TizenRT,JeongJunSik/TizenRT,JeonginKim/TizenRT,jeongarmy/TizenRT,heejin-kim/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,davidfather/TizenRT,lokeshbv/TizenRT,Samsung/TizenRT,davidfather/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,heejin-kim/TizenRT,davidfather/TizenRT,jeongarmy/TizenRT,jsdosa/TizenRT,JeongJunSik/TizenRT,btheosam/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,JeonginKim/TizenRT,shivgarg/TizenRT,btheosam/TizenRT,btheosam/TizenRT,sunghan-chang/TizenRT,lokeshbv/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,shivgarg/TizenRT,chanijjani/TizenRT,jsdosa/TizenRT,Samsung/TizenRT,an4967/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,shivgarg/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,btheosam/TizenRT,JeonginKim/TizenRT,an4967/TizenRT,pillip8282/TizenRT,heejin-kim/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,Samsung/TizenRT,JeongJunSik/TizenRT,heejin-kim/TizenRT,sunghan-chang/TizenRT,heejin-kim/TizenRT,davidfather/TizenRT,btheosam/TizenRT,sunghan-chang/TizenRT,sunghan-chang/TizenRT,heejin-kim/TizenRT,JeongJunSik/TizenRT,chanijjani/TizenRT,an4967/TizenRT,JeonginKim/TizenRT,lokeshbv/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,shivgarg/TizenRT,lokeshbv/TizenRT,Samsung/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,HONGCHAEHEE/TizenRT,shivgarg/TizenRT,jeongchanKim/TizenRT,JeonginKim/TizenRT,an4967/TizenRT,btheosam/TizenRT,jsdosa/TizenRT,JeongJunSik/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,HONGCHAEHEE/TizenRT