From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Fri, 19 Dec 2014 10:43:51 +0100 Subject: [U-Boot] [PATCH] imx:mx6 fix return value of mxc_get_clock In-Reply-To: <1416714740-15604-1-git-send-email-Peng.Fan@freescale.com> References: <1416714740-15604-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <5493F357.6090203@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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 =====================================================================