Message ID | 1392720071-13503-10-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBYXURSMAKGQEIJKYZLA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 87CE1203C5 for <linaro@patches.linaro.org>; Tue, 18 Feb 2014 10:48:02 +0000 (UTC) Received: by mail-qg0-f71.google.com with SMTP id f51sf3005864qge.2 for <linaro@patches.linaro.org>; Tue, 18 Feb 2014 02:48:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=1M4uGyEYvQ/Qb0FJ6Y+a731UpPd8ErItwdKBarohqY8=; b=EuGGdOVGIrhwYq/jYdC+2mnQxKpc32TC6EaqFK3+H390aqaMpTtA5Ra5bBIpZZpx7m Puo7/EPth25tsJ2pkipTAkGbRtThw4YJ9CL4LWfyYPorKLkeYUX875BFaz9Jo9g9RLwS g8Lpo5ggPs2zz0JNDdGKakBPq8z33DfIyHq2mjgo6MMtrn0ZX9z5xEXDt4hAGT9n2HQQ a55vHgeN/d1MyxA0UJk0wA8LGzvSnnmQuVGYGumgF1h7PaF4GQBD6Uj60EDlqh+4JuT8 Sllsp6oRG2JdIy+ZYtgHF9iJH2S4k6zVEO3ylRX6zdqUakvyA2gKin7qxUpK88Mpw7iN dSoA== X-Gm-Message-State: ALoCoQlXl6bkRHmcqX2+/Qt2p8bc4/BtFypt6oMf3YRWH/xkAsJUvNnqdXIszzDZYNtKJ7ikkhOE X-Received: by 10.236.26.209 with SMTP id c57mr4467100yha.9.1392720482175; Tue, 18 Feb 2014 02:48:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.235 with SMTP id l98ls1282365qgl.90.gmail; Tue, 18 Feb 2014 02:48:02 -0800 (PST) X-Received: by 10.220.175.198 with SMTP id bb6mr8587878vcb.31.1392720482044; Tue, 18 Feb 2014 02:48:02 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id x3si5380248vcn.84.2014.02.18.02.48.02 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:48:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so12678185vcb.21 for <patchwork-forward@linaro.org>; Tue, 18 Feb 2014 02:48:01 -0800 (PST) X-Received: by 10.220.114.135 with SMTP id e7mr4833009vcq.39.1392720481951; Tue, 18 Feb 2014 02:48:01 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp207238vcz; Tue, 18 Feb 2014 02:48:01 -0800 (PST) X-Received: by 10.66.136.131 with SMTP id qa3mr31798185pab.77.1392720481196; Tue, 18 Feb 2014 02:48:01 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si17842790paa.344.2014.02.18.02.48.00; Tue, 18 Feb 2014 02:48:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755136AbaBRKrR (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Tue, 18 Feb 2014 05:47:17 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:44862 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755072AbaBRKrP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Feb 2014 05:47:15 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so16519009pab.40 for <linux-kernel@vger.kernel.org>; Tue, 18 Feb 2014 02:47:14 -0800 (PST) X-Received: by 10.68.226.9 with SMTP id ro9mr32552692pbc.72.1392720434710; Tue, 18 Feb 2014 02:47:14 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id gj9sm5442084pbc.7.2014.02.18.02.47.09 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:47:14 -0800 (PST) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 10/15] regulator: da9055: Do not hardcode return value Date: Tue, 18 Feb 2014 16:11:06 +0530 Message-Id: <1392720071-13503-10-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392720071-13503-1-git-send-email-sachin.kamat@linaro.org> References: <1392720071-13503-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index 126e7c6d2c12..9516317e1a9f 100644 --- a/drivers/regulator/da9055-regulator.c +++ b/drivers/regulator/da9055-regulator.c @@ -567,7 +567,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev, of_node_put(nproot); if (ret < 0) { dev_err(&pdev->dev, "Error matching regulator: %d\n", ret); - return -ENODEV; + return ret; } config->init_data = da9055_reg_matches[regid].init_data;
Propagate the error value returned by the function instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/da9055-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)