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

2014-12-19 Thread Stefano Babic
On 23/11/2014 04:52, Peng Fan wrote: mxc_get_clock's return type is unsigned int. 'return -1' is same with 'return 0x', 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

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

2014-11-23 Thread Fabio Estevam
On Sun, Nov 23, 2014 at 1:52 AM, Peng Fan peng@freescale.com wrote: mxc_get_clock's return type is unsigned int. 'return -1' is same with 'return 0x', 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

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

2014-11-22 Thread Peng Fan
mxc_get_clock's return type is unsigned int. 'return -1' is same with 'return 0x', 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: