mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
ARM: OMAP2: Fix tusb6010 init error and compilation warning
Fix "tusb6010 init error 5, -19" and compilation warning from function tusb6010_platform_retime "warning: 'sysclk_ps' is used uninitialized in this function". I suppose commit c094ba34b8f780885d029ce3c2715a194b780e5d was meant to test for zero fclk_ps instead of sysclk_ps. Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com> Cc: Roel Kluin <roel.kluin@gmail.com> Tested-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
6f733a349c
commit
eaf9393bb7
@ -187,7 +187,7 @@ int tusb6010_platform_retime(unsigned is_refclk)
|
|||||||
unsigned sysclk_ps;
|
unsigned sysclk_ps;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
if (!refclk_psec || sysclk_ps == 0)
|
if (!refclk_psec || fclk_ps == 0)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60;
|
sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user