commit | 3c7cb490ab1470828cef08395c8024252ed07053 | [log] [tgz] |
---|---|---|
author | Peng Fan <Peng.Fan@freescale.com> | Sun Nov 23 11:52:20 2014 +0800 |
committer | Stefano Babic <sbabic@denx.de> | Fri Dec 19 10:43:04 2014 +0100 |
tree | 4d7fe29e1dc01688b631fdd2e344e2dc40fce69b | |
parent | 351f2bf04e35feb4ff408ec70e3c118225c1915a [diff] |
imx:mx6 fix return value of mxc_get_clock mxc_get_clock's return type is unsigned int. 'return -1' is same with 'return 0xffffffff', so 0 should be used as the return value when unsupported mxc_clock type is passed to mxc_get_clock. Also include an err message when unsupported mxc_clock type is passed to mxc_get_clock. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>