From patchwork Fri Dec 30 06:06:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 6004 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4311623E01 for ; Fri, 30 Dec 2011 06:07:19 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2343CA18071 for ; Fri, 30 Dec 2011 06:07:19 +0000 (UTC) Received: by eaac11 with SMTP id c11so12347295eaa.11 for ; Thu, 29 Dec 2011 22:07:18 -0800 (PST) Received: by 10.205.120.148 with SMTP id fy20mr8595216bkc.125.1325225237973; Thu, 29 Dec 2011 22:07:17 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs246681bkc; Thu, 29 Dec 2011 22:07:17 -0800 (PST) Received: by 10.227.198.19 with SMTP id em19mr46694560wbb.14.1325225235534; Thu, 29 Dec 2011 22:07:15 -0800 (PST) Received: from DB3EHSOBE001.bigfish.com (db3ehsobe001.messaging.microsoft.com. [213.199.154.139]) by mx.google.com with ESMTPS id el4si17388776wbb.111.2011.12.29.22.07.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Dec 2011 22:07:15 -0800 (PST) Received-SPF: neutral (google.com: 213.199.154.139 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) client-ip=213.199.154.139; Authentication-Results: mx.google.com; spf=neutral (google.com: 213.199.154.139 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) smtp.mail=richard.zhao@linaro.org Received: from mail13-db3-R.bigfish.com (10.3.81.253) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.23; Fri, 30 Dec 2011 06:06:50 +0000 Received: from mail13-db3 (localhost [127.0.0.1]) by mail13-db3-R.bigfish.com (Postfix) with ESMTP id 191A3802D2; Fri, 30 Dec 2011 06:06:51 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bh8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail13-db3 (localhost.localdomain [127.0.0.1]) by mail13-db3 (MessageSwitch) id 1325225210955570_6467; Fri, 30 Dec 2011 06:06:50 +0000 (UTC) Received: from DB3EHSMHS012.bigfish.com (unknown [10.3.81.247]) by mail13-db3.bigfish.com (Postfix) with ESMTP id DC333240042; Fri, 30 Dec 2011 06:06:50 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB3EHSMHS012.bigfish.com (10.3.87.112) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 30 Dec 2011 06:06:50 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.355.3; Fri, 30 Dec 2011 00:07:12 -0600 Received: from b20223-02.ap.freescale.net (b20223-02.ap.freescale.net [10.192.242.124]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pBU67831001337; Fri, 30 Dec 2011 00:07:09 -0600 (CST) From: Richard Zhao To: , CC: , , Richard Zhao , Richard Zhao Subject: [PATCH 1/1] regulator/fixed: set constraints.apply_uV to 0 Date: Fri, 30 Dec 2011 14:06:53 +0800 Message-ID: <1325225213-29655-1-git-send-email-richard.zhao@linaro.org> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com From: Richard Zhao Fix fixed regulator failed to call regulator_register. Fixed regulator does not support set voltage operation, so we don't need apply_uV. Signed-off-by: Richard Zhao Signed-off-by: Richard Zhao --- drivers/regulator/fixed.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index a44a017..fa0c426 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -69,6 +69,7 @@ of_get_fixed_voltage_config(struct device *dev) return NULL; init_data = config->init_data; + init_data->constraints.apply_uV = 0; config->supply_name = init_data->constraints.name; if (init_data->constraints.min_uV == init_data->constraints.max_uV) {