OSDN Git Service

reset: ti_syscon: fix a ti_syscon_reset_status issue
authorJiancheng Xue <xuejiancheng@hisilicon.com>
Wed, 30 Nov 2016 01:03:32 +0000 (09:03 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Jan 2017 09:38:58 +0000 (10:38 +0100)
commit5987b4bf512101137fa60c5c0ccac3db51541221
treef3c10b55f13ffcd7daf1e9a17ab24331bc55ac6a
parenta121103c922847ba5010819a3f250f1f7fc84ab8
reset: ti_syscon: fix a ti_syscon_reset_status issue

If STATUS_SET was not set, ti_syscon_reset_status would always return 0
no matter whether the status_bit was set or not.

Signed-off-by: Jiancheng Xue <xuejiancheng@hisilicon.com>
Fixes: cc7c2bb1493c ("reset: add TI SYSCON based reset driver")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-ti-syscon.c