MLK-17491-19 clocksource: imx-tpm: fix error checks
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 6 Sep 2017 13:13:25 +0000 (21:13 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:54:32 +0000 (14:54 -0500)
commit79f060e51af591f4d3c1608c6dedd0e6c8577a5a
tree9839c0e9308eeb3e9b4d361d2678c82dbc7a1dc8
parent90232c8ee72d44c472ef0ffe580e41110699edd4
MLK-17491-19 clocksource: imx-tpm: fix error checks

Note we shouldn't use BUG_ON here as there might be alternative timers.

Cc: Shenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/clocksource/timer-imx-tpm.c