From patchwork Wed Dec 16 16:22:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 68395 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI4ixp5005715 for ; Fri, 18 Dec 2009 04:46:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934977AbZLPQUS (ORCPT ); Wed, 16 Dec 2009 11:20:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934973AbZLPQUP (ORCPT ); Wed, 16 Dec 2009 11:20:15 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:44215 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934958AbZLPQUL (ORCPT ); Wed, 16 Dec 2009 11:20:11 -0500 Received: by bwz27 with SMTP id 27so851671bwz.21 for ; Wed, 16 Dec 2009 08:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=e5TbWBNOHA/cIoSQ0zUgxGnGLnww0TkWtmK+mxHF/xo=; b=Evn2KTaH/s1nKkc1HmjXXrKoZwSVYOTUEnVnoy594KR/08TtXiylxJBig63C2kxrV+ JnMao2cXaXDEsDKeZllvLlNhgt9gZaHrbFX0/ryqtV8+NfDpf94oCQrxRx4b95zEa4mF hCgSpkc90oIqTHX2K4+z0gf9DEuMxnVHRUeCs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=YSuSv/zfDCbvcXhrJq2PGoKMNSAL4EB6Ilg94Grs/oTob+THu2IKFRyxwiXkB6LdNN D3V2zExZQ//wf/LU2+vXSijCacIG/M9aDP2AsC4xlBEb8bs8Oz4prS2SME56xmTsS07Y fJ0a+GdT6+4kEuxnKqygi9XQXqttTzAJvkTzc= Received: by 10.103.35.27 with SMTP id n27mr554860muj.111.1260980409742; Wed, 16 Dec 2009 08:20:09 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id s11sm3639198mue.49.2009.12.16.08.20.08 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Dec 2009 08:20:09 -0800 (PST) Message-ID: <4B29092C.4040600@gmail.com> Date: Wed, 16 Dec 2009 17:22:04 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 MIME-Version: 1.0 To: linux-pm@lists.linux-foundation.org, Pavel Machek , "linux-omap@vger.kernel.org" , Tony Lindgren , Andrew Morton , LKML Subject: [PATCH] OMAP: omap3_pm_get_suspend_state() error ignored in pwrdm_suspend_get() Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 860b755..081ca85 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -488,9 +488,11 @@ int pm_dbg_regset_init(int reg_set) static int pwrdm_suspend_get(void *data, u64 *val) { - *val = omap3_pm_get_suspend_state((struct powerdomain *)data); + int ret; + ret = omap3_pm_get_suspend_state((struct powerdomain *)data); + *val = ret; - if (*val >= 0) + if (ret >= 0) return 0; return *val; }