From patchwork Fri Aug 1 17:11:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34731 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1AAE20540 for ; Fri, 1 Aug 2014 17:22:31 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf22024372ieb.6 for ; Fri, 01 Aug 2014 10:22:31 -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=+oMlVn+wx0fg5EGgTAzwYKGYuzjTXBfm981Vhn6eOpo=; b=QpgFZAmCeVtmWW+UPt3Tv9Mp9ldAzzzx3S9mcAagWIJiE843DtWFwL/4n1qWXUewc5 ObrOkY7Tp+8mktm+3LNpVoaOctgtoazvA7Xp7QEmi0p7oF/78fu4WmlUy38nJ5x7Mq/X v6bgsePJT9Y0cvWezyYm+RueIei+ARK6ggT1uWtNAprA95Vs/4s96u17R8y7zQaLbicq D0I7SS743k34WdoNRk2qneW2rmHfjSTm1TyCauNsI/Kvt5DYH57O7cJ9Y38FcV8bJSQd YOMkYgtGqElcm2R5Rd2MduB4LjWs/bC4oywB4oHx18AuhlM3NPDp0vYbMbB8CIMuHid7 W1RA== X-Gm-Message-State: ALoCoQmoQJZ2+OjfeyhmciJi4muZJOMjttaUhHsexrCBsxxZkw7AlC78XBRsCwTpfYz6GI+hFYgc X-Received: by 10.50.80.111 with SMTP id q15mr2605305igx.0.1406913751202; Fri, 01 Aug 2014 10:22:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.35.232 with SMTP id n95ls1400319qgn.23.gmail; Fri, 01 Aug 2014 10:22:31 -0700 (PDT) X-Received: by 10.220.172.8 with SMTP id j8mr8132780vcz.32.1406913751101; Fri, 01 Aug 2014 10:22:31 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id 6si7905913vct.68.2014.08.01.10.22.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 10:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so7160161vcb.39 for ; Fri, 01 Aug 2014 10:22:31 -0700 (PDT) X-Received: by 10.52.144.14 with SMTP id si14mr3200653vdb.95.1406913750999; Fri, 01 Aug 2014 10:22:30 -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 tc5csp126895vcb; Fri, 1 Aug 2014 10:22:30 -0700 (PDT) X-Received: by 10.66.163.98 with SMTP id yh2mr7971994pab.104.1406913750100; Fri, 01 Aug 2014 10:22:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ie10si10530887pad.64.2014.08.01.10.22.29 for ; Fri, 01 Aug 2014 10:22:30 -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 S1755750AbaHARW0 (ORCPT + 19 others); Fri, 1 Aug 2014 13:22:26 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:39917 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755668AbaHARWT (ORCPT ); Fri, 1 Aug 2014 13:22:19 -0400 Received: from 94.197.121.167.threembb.co.uk ([94.197.121.167] helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XDGX1-0006fg-OJ; Fri, 01 Aug 2014 17:22:16 +0000 Received: from broonie by finisterre with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XDGMm-0003ZN-8t; Fri, 01 Aug 2014 18:11:40 +0100 From: Mark Brown To: Philipp Zabel Cc: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, Mark Brown Date: Fri, 1 Aug 2014 18:11:39 +0100 Message-Id: <1406913099-13688-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.0 X-SA-Exim-Connect-IP: 94.197.121.167 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, TVD_RCVD_IP autolearn=ham version=3.3.2 Subject: [PATCH] reset: Provide !RESET_CONTROLLER stub for devm_reset_control_get() 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.180 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 At least the sun6i DMA controller driver makes use of the reset controller API stubs when being built for coverage and otherwise fails to build. Signed-off-by: Mark Brown --- include/linux/reset.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/reset.h b/include/linux/reset.h index 349f150..28f119f 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -67,6 +67,13 @@ static inline int device_reset_optional(struct device *dev) return -ENOSYS; } +static inline struct reset_control *devm_reset_control_get(struct device *dev, + const char *id) +{ + WARN_ON(1); + return ERR_PTR(-ENOSYS); +} + static inline struct reset_control *reset_control_get_optional( struct device *dev, const char *id) {