From patchwork Wed Nov 21 04:34:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13018 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 8873A23DFE for ; Wed, 21 Nov 2012 04:41:17 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 43B31A19B9F for ; Wed, 21 Nov 2012 04:41:17 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9345445iej.11 for ; Tue, 20 Nov 2012 20:41:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=PIYLALt4O65j+CltHoQ03Q7sBWv/aaIlALu2VW9Jpho=; b=Ru5IZnwYxh1hADb0VCBBXJTh1kwb0+a2E95Z75XHHgRORdSe6h4O9K67wATJhAmsCI milNq+ZDar2B/NkhKHjmI+IeWT1XmG+TAbbCeRu3ZGmXt9sSNoxNbZYefsbJzbi9WYPA HqE7VsSpLk+1l0TXV4vuZ+YbpUR6/Sx+DJco+Xu5q/PNgb4PG7Ll/kYSqVN1xu+8cNd9 S6AbineI989O/k6zyhJlsPFN/76qH7k/YUMfJnrXH+mwsMLlhuiFIPQ+P37Xo3C06s3g MSU5QolxBCdGAqyqt486ejFOyKio6iuOBZAs8XPW8qPrhQJ5ueP6l5sUAdCZubwUQ0IA TgqQ== Received: by 10.50.161.169 with SMTP id xt9mr12270139igb.62.1353472876624; Tue, 20 Nov 2012 20:41:16 -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.50.67.148 with SMTP id n20csp431871igt; Tue, 20 Nov 2012 20:41:15 -0800 (PST) Received: by 10.68.233.201 with SMTP id ty9mr56842831pbc.14.1353472875650; Tue, 20 Nov 2012 20:41:15 -0800 (PST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id o10si20741028paw.238.2012.11.20.20.41.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 20:41:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pa0-f41.google.com with SMTP id bj3so740671pad.14 for ; Tue, 20 Nov 2012 20:41:15 -0800 (PST) Received: by 10.68.193.167 with SMTP id hp7mr56574635pbc.124.1353472875268; Tue, 20 Nov 2012 20:41:15 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id a10sm9236083paz.35.2012.11.20.20.41.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 20:41:14 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: cw00.choi@samsung.com, myungjoo.ham@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/2] extcon: max77693: Fix uninitialised variable warning Date: Wed, 21 Nov 2012 10:04:57 +0530 Message-Id: <1353472498-5793-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmWHab//cf1qjrOoaBDVJefFHGFvRB3BbEDsRFcGeDPGL2Cz3Lm40klVmMvkcHkmICfk0dA Signed-off-by: Sachin Kamat --- Hi Chanwoo, Please merge this patch with the previous one titled "extcon: max77693: Use devm_kzalloc" --- drivers/extcon/extcon-max77693.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index 3c29bb7..1da4ad4 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c @@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev) info->max77693->muic, &max77693_muic_regmap_config); if (IS_ERR(info->max77693->regmap_muic)) { + ret = PTR_ERR(info->max77693->regmap_muic); dev_err(max77693->dev, "failed to allocate register map: %d\n", ret); - return PTR_ERR(info->max77693->regmap_muic); + return ret; } } platform_set_drvdata(pdev, info);