[U-Boot] [PATCH] imx:mx6 fix return value of mxc_get_clock

Stefano Babic sbabic at denx.de
Fri Dec 19 10:43:51 CET 2014


On 23/11/2014 04:52, Peng Fan wrote:
> 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 at freescale.com>
> ---


Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list