From patchwork Thu Apr 23 06:30:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 19477 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3N6TmVB000309 for ; Thu, 23 Apr 2009 06:29:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752894AbZDWG3n (ORCPT ); Thu, 23 Apr 2009 02:29:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752276AbZDWG3n (ORCPT ); Thu, 23 Apr 2009 02:29:43 -0400 Received: from smtp.nokia.com ([192.100.122.233]:52134 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbZDWG3m (ORCPT ); Thu, 23 Apr 2009 02:29:42 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n3N6TRDd032179; Thu, 23 Apr 2009 09:29:36 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 23 Apr 2009 09:29:36 +0300 Received: from mgw-int01.ntc.nokia.com ([172.21.143.96]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 23 Apr 2009 09:29:36 +0300 Received: from localhost.localdomain (esdhcp042162.research.nokia.com [172.21.42.162]) by mgw-int01.ntc.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id n3N6TZr4007083; Thu, 23 Apr 2009 09:29:35 +0300 From: Jarkko Nikula To: linux-omap@vger.kernel.org Cc: Jarkko Nikula , Roel Kluin Subject: [PATCH] ARM: OMAP: Fix tusb6010 init error and compilation warning Date: Thu, 23 Apr 2009 09:30:27 +0300 Message-Id: <1240468227-15393-1-git-send-email-jarkko.nikula@nokia.com> X-Mailer: git-send-email 1.6.2.1 X-OriginalArrivalTime: 23 Apr 2009 06:29:36.0484 (UTC) FILETIME=[DF63A240:01C9C3DC] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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 Cc: Roel Kluin Tested-by: Kalle Valo --- arch/arm/mach-omap2/usb-tusb6010.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/usb-tusb6010.c b/arch/arm/mach-omap2/usb-tusb6010.c index 59c1d57..c05df28 100644 --- a/arch/arm/mach-omap2/usb-tusb6010.c +++ b/arch/arm/mach-omap2/usb-tusb6010.c @@ -185,7 +185,7 @@ int tusb6010_platform_retime(unsigned is_refclk) unsigned sysclk_ps; int status; - if (!refclk_psec || sysclk_ps == 0) + if (!refclk_psec || fclk_ps == 0) return -ENODEV; sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60;