From patchwork Tue Nov 6 11:41:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12679 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 CF38A23F56 for ; Tue, 6 Nov 2012 11:47:24 +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 893B8A196C4 for ; Tue, 6 Nov 2012 11:47:24 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so382206iej.11 for ; Tue, 06 Nov 2012 03:47:24 -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=Y9Ce+UdNK1285/vGx4dAzWgSI41HQV9HfunTDa0u7xU=; b=IqiJhPGqbBzvkIRdrWbo5v38N6fttsNGGYAIk44Y9NwGgHGbfWH7p1f4VeZ+5eI0VR qgaibeep1dVnv6KgbxNLoLe70L4Fox0BymvdprAz+DWfBPMITmzsoF4SktqdK8FZPuyO GLuNFH+ygZfogGwFQ1Rr4IwDopYUwskvZaq21p6xejESEDLDo/I6vkhPVY8Hbn7RCqBt MEFqfcENzhrXwAjdFH0ZP98nWYSnqSZcRbASatvNtGOqiSyoYG7vFBgoKgebmzH9zE1J uLSqbrfz9OE3tnUbxGb+4vBF9VQUZHpDwevQtvRzAFCBMiSdCuVx564yxcqetNS0hHMH Rx7g== Received: by 10.50.40.166 with SMTP id y6mr605636igk.57.1352202444001; Tue, 06 Nov 2012 03:47:24 -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 n20csp26638igt; Tue, 6 Nov 2012 03:47:23 -0800 (PST) Received: by 10.68.248.1 with SMTP id yi1mr2484961pbc.93.1352202442870; Tue, 06 Nov 2012 03:47:22 -0800 (PST) Received: from mail-da0-f52.google.com (mail-da0-f52.google.com [209.85.210.52]) by mx.google.com with ESMTPS id uq10si27560770pbc.17.2012.11.06.03.47.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 03:47:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.52 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.52; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.52 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-da0-f52.google.com with SMTP id f10so206788dak.39 for ; Tue, 06 Nov 2012 03:47:22 -0800 (PST) Received: by 10.66.88.133 with SMTP id bg5mr1747854pab.80.1352202441908; Tue, 06 Nov 2012 03:47:21 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hc4sm12242268pbc.30.2012.11.06.03.47.17 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 03:47:21 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: sachin.kamat@linaro.org, patches@linaro.org, Chanwoo Choi , MyungJoo Ham Subject: [PATCH 1/1] extcon: Redo: Fix return value in extcon_register_interest() Date: Tue, 6 Nov 2012 17:11:46 +0530 Message-Id: <1352202106-12007-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnuczPkJ5CbZxNT2jiD+wWzygfwVzJAgPopfXeJLBT840oKeOaUhSv6sGgtYnRIxbC+KZhB Commit 4f2de3bf (extcon : register for cable interest by cable name) reverted the change done in commit 5cd3c277. Re-doing it. Cc: Chanwoo Choi Cc: MyungJoo Ham Signed-off-by: Sachin Kamat --- drivers/extcon/extcon-class.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/extcon/extcon-class.c b/drivers/extcon/extcon-class.c index d398821..8e577ed 100644 --- a/drivers/extcon/extcon-class.c +++ b/drivers/extcon/extcon-class.c @@ -472,7 +472,7 @@ int extcon_register_interest(struct extcon_specific_cable_nb *obj, obj->cable_index = extcon_find_cable_index(obj->edev, cable_name); if (obj->cable_index < 0) - return -ENODEV; + return -EINVAL; obj->user_nb = nb;