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

Fabio Estevam festevam at gmail.com
Mon Nov 24 01:38:17 CET 2014


On Sun, Nov 23, 2014 at 1:52 AM, Peng Fan <Peng.Fan at freescale.com> 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>

Reviewed-by: Fabio Estevam <fabio.estevam at freescale.com>


More information about the U-Boot mailing list