MLK-17491-20 clocksource: imx-tpm: code cleanup and improvement
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 6 Sep 2017 13:28:05 +0000 (21:28 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:54:32 +0000 (14:54 -0500)
commit578455f94daae2885ffb2b44793aa1266a23fc40
treef4ba4563fe442163705aa8b72b14058925e5759a
parent79f060e51af591f4d3c1608c6dedd0e6c8577a5a
MLK-17491-20 clocksource: imx-tpm: code cleanup and improvement

1) replace magic number with macros
2) add more code comments
3) replace setup_irq with request_irq as no need use setup_irq
4) replace __raw_readl which has endian issue with readl
(so far endian issue not exist on IMX, but better write more robust code
in advance)
5) remove the last meaningless timer_base read

No function level change.

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