Message ID | 1392886403-10640-8-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRB54LS6MAKGQE3JJ6I2Y@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AFE182066E for <linaro@patches.linaro.org>; Thu, 20 Feb 2014 09:08:07 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf6302262oag.1 for <linaro@patches.linaro.org>; Thu, 20 Feb 2014 01:08:07 -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=xWK4k81vHS93sJX8jLsxcOdk5soL78AGrStxS+iHNdk=; b=Nynx9EUDh7uGT3+x2BLSKiYr3kU9HNkJg4t+NhxF0Vm1yp9xoVEuzFGuy+uIBTiO9T 3d+P0CeLGFIpg7zfet9+X+gHvPa4Pm9BKbPyIHpKWit+8ONYXwxGhFUC1tlha8UjcVzF 37JvRICjzao6joHckdG313HvcGCDc3XTWpD8lSX38Dwmyz8GltFwMRpY4ldUpV2ooY2b DCxyxRFw3SGpaykKz8ZVkh9DrGx8RldVObiwXCAqYe0g1Pd4oJuNrjS2muSWfUhJ5KG9 ErK2Jya33gvxkyUm3XpZh3F9jCmPDyCbFkwSXHFTRslgGSLO6aB+AB7WCen5PKmm1rhN K5Xg== X-Gm-Message-State: ALoCoQkuMf8W5RXn6P3Pu/jDrXp7/SlMjRKxTEpFO0+arT5+XsORu8CuN9Egs7RuPhyl3i9NFhxo X-Received: by 10.42.107.67 with SMTP id c3mr285216icp.0.1392887287243; Thu, 20 Feb 2014 01:08:07 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.103 with SMTP id k94ls454679qgd.39.gmail; Thu, 20 Feb 2014 01:08:07 -0800 (PST) X-Received: by 10.52.25.135 with SMTP id c7mr314177vdg.62.1392887287127; Thu, 20 Feb 2014 01:08:07 -0800 (PST) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id us10si1200943vcb.134.2014.02.20.01.08.07 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 01:08:07 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id cz12so335682veb.11 for <patchwork-forward@linaro.org>; Thu, 20 Feb 2014 01:08:07 -0800 (PST) X-Received: by 10.52.61.168 with SMTP id q8mr325939vdr.40.1392887287063; Thu, 20 Feb 2014 01:08:07 -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 u4csp41315vcz; Thu, 20 Feb 2014 01:08:06 -0800 (PST) X-Received: by 10.68.201.67 with SMTP id jy3mr856282pbc.20.1392887286291; Thu, 20 Feb 2014 01:08:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ki1si2626073pbc.205.2014.02.20.01.08.02; Thu, 20 Feb 2014 01:08:02 -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 S1754653AbaBTJHn (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Thu, 20 Feb 2014 04:07:43 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:65143 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754286AbaBTI7O (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Feb 2014 03:59:14 -0500 Received: by mail-pa0-f48.google.com with SMTP id kx10so1621060pab.7 for <linux-kernel@vger.kernel.org>; Thu, 20 Feb 2014 00:59:14 -0800 (PST) X-Received: by 10.66.102.39 with SMTP id fl7mr648220pab.43.1392886754511; Thu, 20 Feb 2014 00:59:14 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id eo11sm21100112pac.0.2014.02.20.00.59.12 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:13 -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 08/23] regulator: max8952: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:08 +0530 Message-Id: <1392886403-10640-8-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392886403-10640-1-git-send-email-sachin.kamat@linaro.org> References: <1392886403-10640-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.128.180 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/max8952.c b/drivers/regulator/max8952.c index 788e5ae2af1b..66e777967c69 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -144,10 +144,8 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev) int i; pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); - if (!pd) { - dev_err(dev, "Failed to allocate platform data\n"); + if (!pd) return NULL; - } pd->gpio_vid0 = of_get_named_gpio(np, "max8952,vid-gpios", 0); pd->gpio_vid1 = of_get_named_gpio(np, "max8952,vid-gpios", 1);
kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/max8952.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)