From patchwork Thu Jul 21 05:06:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 72526 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp239576qga; Wed, 20 Jul 2016 22:05:27 -0700 (PDT) X-Received: by 10.66.160.136 with SMTP id xk8mr9578260pab.28.1469077527071; Wed, 20 Jul 2016 22:05:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id si4si7447483pab.123.2016.07.20.22.05.26; Wed, 20 Jul 2016 22:05:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751414AbcGUFFY (ORCPT + 29 others); Thu, 21 Jul 2016 01:05:24 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:22597 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbcGUFFW (ORCPT ); Thu, 21 Jul 2016 01:05:22 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id u6L54bDF006718; Thu, 21 Jul 2016 14:04:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com u6L54bDF006718 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1469077478; bh=TDgVPdYTD2nAWrx7pKXl2N1kJ3yGRoAzAyDqbypOExo=; h=From:To:Cc:Subject:Date:From; b=2CZfmmovFa93vf7pDTXdSXknpr+puNEe+WX+plY1ceD18RWaM1rh1+PzeUJwWkrAA nawbH5DEOk0b1VkK7tJg6/CfO0xorA5E3Cpb85gEuq1d38sle3ksRxOD9uQiaDhDjo oG5m7nz8K9aHj2nYTxElEbGgIOSioOw6XEWPiHFV0DVK8IVoBcwGOcF5mUi69bG7V1 0ndxOehPHBax9IUIHuC0go1oWytxwa3NsSut9LgeVnmxTyXc+1mC1XEN1cPEvy/GIm m2+Y7GbexLKkePy8U3ttnLppqD9UJLHVpQAPQfI0HL/TGQylD7o1aJ2xs6WuYXSdEH xU/c1oEULnM3g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kernel@vger.kernel.org Cc: Hans de Goede , Philipp Zabel , Lee Jones , Masahiro Yamada Subject: [PATCH] reset: return -ENOTSUPP if CONFIG_RESET_CONTROLLER is undefined Date: Thu, 21 Jul 2016 14:06:25 +0900 Message-Id: <1469077585-23237-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This has been inconsistent; some returns -EINVAL, some -ENOTSUPP. Make it consistent in this header, in favor of -ENOTSUPP. Signed-off-by: Masahiro Yamada --- include/linux/reset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/include/linux/reset.h b/include/linux/reset.h index 5894f0f..c875b4b 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -71,14 +71,14 @@ static inline struct reset_control *__of_reset_control_get( struct device_node *node, const char *id, int index, int shared) { - return ERR_PTR(-EINVAL); + return ERR_PTR(-ENOTSUPP); } static inline struct reset_control *__devm_reset_control_get( struct device *dev, const char *id, int index, int shared) { - return ERR_PTR(-EINVAL); + return ERR_PTR(-ENOTSUPP); } #endif /* CONFIG_RESET_CONTROLLER */