From patchwork Wed Jan 4 03:07:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 6043 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 BC65F23E01 for ; Wed, 4 Jan 2012 03:07:41 +0000 (UTC) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by fiordland.canonical.com (Postfix) with ESMTP id A3EE1A180EA for ; Wed, 4 Jan 2012 03:07:41 +0000 (UTC) Received: by eeke52 with SMTP id e52so17339146eek.11 for ; Tue, 03 Jan 2012 19:07:41 -0800 (PST) Received: by 10.205.138.136 with SMTP id is8mr12310086bkc.35.1325646461076; Tue, 03 Jan 2012 19:07:41 -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 ac16cs357358bkc; Tue, 3 Jan 2012 19:07:40 -0800 (PST) Received: by 10.220.148.196 with SMTP id q4mr30608562vcv.42.1325646458710; Tue, 03 Jan 2012 19:07:38 -0800 (PST) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe006.messaging.microsoft.com. [216.32.181.186]) by mx.google.com with ESMTPS id p9si6394149vcv.190.2012.01.03.19.07.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jan 2012 19:07:38 -0800 (PST) Received-SPF: neutral (google.com: 216.32.181.186 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) client-ip=216.32.181.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.186 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) smtp.mail=richard.zhao@linaro.org Received: from mail164-ch1-R.bigfish.com (10.43.68.249) by CH1EHSOBE017.bigfish.com (10.43.70.67) with Microsoft SMTP Server id 14.1.225.23; Wed, 4 Jan 2012 03:07:37 +0000 Received: from mail164-ch1 (localhost [127.0.0.1]) by mail164-ch1-R.bigfish.com (Postfix) with ESMTP id 627C012033A; Wed, 4 Jan 2012 03:07:37 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) 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-SS: 13, X-FB-DOMAIN-IP-MATCH: fail Received: from mail164-ch1 (localhost.localdomain [127.0.0.1]) by mail164-ch1 (MessageSwitch) id 13256464573483_22102; Wed, 4 Jan 2012 03:07:37 +0000 (UTC) Received: from CH1EHSMHS022.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.249]) by mail164-ch1.bigfish.com (Postfix) with ESMTP id EE709300192; Wed, 4 Jan 2012 03:07:36 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS022.bigfish.com (10.43.70.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 4 Jan 2012 03:07:36 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.355.3; Tue, 3 Jan 2012 21:07:35 -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 q0437W8f015062; Tue, 3 Jan 2012 21:07:33 -0600 (CST) From: Richard Zhao To: , , CC: , , , , Richard Zhao Subject: [PATCH v2 1/1] regulator: set constraints.apply_uV to 0 in of_get_fixed_voltage_config Date: Wed, 4 Jan 2012 11:07:29 +0800 Message-ID: <1325646449-21916-1-git-send-email-richard.zhao@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1325225213-29655-1-git-send-email-richard.zhao@linaro.org> References: <1325225213-29655-1-git-send-email-richard.zhao@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Fix fixed regulator using DT failed to call regulator_register. of_get_regulator_init_data set apply_uV to 1, but fixed regulator doesn't need it. Set it back to 0. 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 393f039..e24e3a1 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) {