From patchwork Fri Jul 25 18:02:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 79A05235AB for ; Fri, 25 Jul 2014 18:03:09 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id c11sf3569730lbj.4 for ; Fri, 25 Jul 2014 11:03:08 -0700 (PDT) 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:date :message-id:subject:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=X4VFgC3LEGhNGQO99pUUPiEDS3yYo6VxtBcrZ6VR8II=; b=J2eb+8y01Sf0BEv8vZkTHbAtX5AZGtKfnxFTPy9sKToONjD8gQklxgNBz0Nvn6uFHk ULQ+BkFqAkLOtki6iGdKMGoOL8bcdomMBXD1IkQznEmuyfJwMRoI3Ik9FxtXF7K+on90 Qln6BMmRhiCWxWdTkoKhpc5Bwk1RzHSzq63nqqwMX7ZDBy/kAxiRpeKcK6GscOUPk4q8 Ex3Q70uzxGWL+9iIB6oqWbjux9saLcdiryLReSEgfPieWToPT1BWF/5CGqlpQEDWgddy ZI/ND1IvH8h2upm3Z38rL4CIpT5i1XEk71Mqcd3cm+pLyrJpNNiAAgN8heb72BD2u9Zc /rbA== X-Gm-Message-State: ALoCoQmu+1M1u4vg7VEjkEJviE5codkFOBYju3gkgwrNw9hvi76ShWvMuomPi8mVcWv505YnoCZ9 X-Received: by 10.112.92.134 with SMTP id cm6mr545939lbb.15.1406311387880; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.244 with SMTP id p107ls1299502qgp.50.gmail; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) X-Received: by 10.52.246.11 with SMTP id xs11mr3294863vdc.96.1406311387711; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id er10si8049091vdc.28.2014.07.25.11.03.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 11:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hu12so8047688vcb.14 for ; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) X-Received: by 10.221.34.13 with SMTP id sq13mr23506643vcb.16.1406311387595; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp56174vcb; Fri, 25 Jul 2014 11:03:07 -0700 (PDT) X-Received: by 10.70.134.225 with SMTP id pn1mr4643929pdb.146.1406311386750; Fri, 25 Jul 2014 11:03:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cg7si4957838pdb.476.2014.07.25.11.03.06 for ; Fri, 25 Jul 2014 11:03:06 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934758AbaGYSDD (ORCPT + 14 others); Fri, 25 Jul 2014 14:03:03 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:55039 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbaGYSDB (ORCPT ); Fri, 25 Jul 2014 14:03:01 -0400 Received: from cpc11-sgyl31-2-0-cust672.sgyl.cable.virginm.net ([94.175.94.161] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XAjpT-00020R-7u; Fri, 25 Jul 2014 18:02:55 +0000 Received: from broonie by debutante with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XAjpQ-0000AQ-DL; Fri, 25 Jul 2014 19:02:48 +0100 From: Mark Brown To: linux-kernel@vger.kernel.org Cc: linaro-kernel@lists.linaro.org, Mark Brown Date: Fri, 25 Jul 2014 19:02:47 +0100 Message-Id: <1406311367-606-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.1 X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Subject: [PATCH] regmap: Fix return code for stub regmap_get_device() X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) 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: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Brown We return a pointer, not an int. Signed-off-by: Mark Brown --- include/linux/regmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index cd480fd59795..c5ed83f49c4e 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -733,7 +733,7 @@ static inline struct regmap *dev_get_regmap(struct device *dev, static inline struct device *regmap_get_device(struct regmap *map) { WARN_ONCE(1, "regmap API is disabled"); - return -EINVAL; + return NULL; } #endif