]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx:mx6 fix return value of mxc_get_clock
authorPeng Fan <Peng.Fan@freescale.com>
Sun, 23 Nov 2014 03:52:20 +0000 (11:52 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Dec 2014 09:43:04 +0000 (10:43 +0100)
commiteb412d79e476e871374ed1b8e561287746609018
tree4d7fe29e1dc01688b631fdd2e344e2dc40fce69b
parentd8bec60c1b0de7770f9b56ad092ab9be801d99af
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>
arch/arm/cpu/armv7/mx6/clock.c