From patchwork Mon Aug 31 09:22:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7099171 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BA3489F36E for ; Mon, 31 Aug 2015 09:23:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EAA6920760 for ; Mon, 31 Aug 2015 09:23:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B2DA12065F for ; Mon, 31 Aug 2015 09:23:16 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id ADEA4260687; Mon, 31 Aug 2015 11:23:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 2C6DD260672; Mon, 31 Aug 2015 11:22:56 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DA42B2606FD; Mon, 31 Aug 2015 11:22:54 +0200 (CEST) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by alsa0.perex.cz (Postfix) with ESMTP id 3260126148F for ; Mon, 31 Aug 2015 11:22:29 +0200 (CEST) Received: by padhy3 with SMTP id hy3so28901000pad.0 for ; Mon, 31 Aug 2015 02:22:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=Quaw/YBb+N9LQ6eGJz6CRn4bDJmgSdvWySsto0OgGG4=; b=fHJ9TvZYZwvruZmpUvnQ8xRR2yJMMvhovcbmXawwUF+2x3FHnYdxCQs+obS/S+a/AR DsNVxdWx/MkMk6vywnjIAAuz7B67hO06WZ8PBkVENX9bs3C7l5UqAxXH4pi1DWR7+SEt hI9sPIkSiU9nZbXLYHSAQqcXGWXJbLM93avy4g3kWcyWuUNB6iazgGVhB005ogkBDlj4 lRY5a330niHvUosXYAui3Vcr7VLqFsr2FaduWRVt9C7DSehNW9pr0gKQyTXLXsHdIarD Tp7l6mMURPTUQD6r++yMSw2uuCni+yBjloHfUiTeVKb5Lis2Luogpq6ft3X7e1fdDGa6 EjPQ== X-Gm-Message-State: ALoCoQkuCchf6AcY3WS9RC+qQfXqNF2rz/HGNT0KB8VMNqjjR2nIzyKiX5hEolxXpGGX/pfnUDMf X-Received: by 10.66.144.165 with SMTP id sn5mr11999327pab.122.1441012947937; Mon, 31 Aug 2015 02:22:27 -0700 (PDT) Received: from phoenix.local (36-239-213-235.dynamic-ip.hinet.net. [36.239.213.235]) by smtp.gmail.com with ESMTPSA id xg3sm13797845pbb.64.2015.08.31.02.22.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Aug 2015 02:22:26 -0700 (PDT) Message-ID: <1441012943.22251.1.camel@ingics.com> From: Axel Lin To: Philipp Zabel Date: Mon, 31 Aug 2015 17:22:23 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org, Liam Girdwood , Arnaud Pouliquen , linux-kernel@vger.kernel.org, Takashi Iwai , Mark Brown Subject: [alsa-devel] [PATCH] reset: Add (devm_)reset_control_get stub functions X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP So the drivers can be compiled with CONFIG_RESET_CONTROLLER disabled. Signed-off-by: Axel Lin --- include/linux/reset.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/linux/reset.h b/include/linux/reset.h index da5602b..cd42c1b 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -74,6 +74,18 @@ static inline int device_reset_optional(struct device *dev) return -ENOSYS; } +static inline struct reset_control *reset_control_get( + struct device *dev, const char *id) +{ + return ERR_PTR(-ENOSYS); +} + +static inline struct reset_control *devm_reset_control_get( + struct device *dev, const char *id) +{ + return ERR_PTR(-ENOSYS); +} + static inline struct reset_control *reset_control_get_optional( struct device *dev, const char *id) {