From patchwork Mon Sep 11 09:00:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 112174 Delivered-To: patch@linaro.org Received: by 10.100.153.131 with SMTP id 3csp5468929pji; Mon, 11 Sep 2017 02:00:40 -0700 (PDT) X-Received: by 10.99.124.30 with SMTP id x30mr11455778pgc.52.1505120440189; Mon, 11 Sep 2017 02:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505120440; cv=none; d=google.com; s=arc-20160816; b=UHCDksd4F9UdiddLOz9MyklPyO7fnO7VPMZz4XaveZrwdbdhNCgFosZ+RERJv9gcu4 lT5nAz3Pzfsb50XLEt/hUevxnUpOutMzIdvgN1D1da30TxsAP/L3PhAmjFVk1o0Bhgdg mGfmv31OZ3QFPRnm+ZA5qayp3p/K9TscHMd5ydKFtLYZAEZQV4qYpW1icmvf6z05CU4w 9XuOLOQP/mcO8KpuhzKPzt1uJ4uhX0Iljg6QBQSz0DeJStIVWpg5xZUzbAvEEEPNfdQ9 krLkDhtEKeq8UVvXI+M3Sa1WI3aXB4y2bu17qjIYep7KQHsFrEr01/TD88g6tqGUaCRi 9QXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=HSNmuq0s8o7KuV9t6O8SmzD9pTOj4Wygq4Z4I9PNtMQ=; b=Vh4KsWEQZNAviy5Mt6KFEbJFlW1E7K8KgEXDSX1Z4xvusrKBSJGosMQNH8954vFZe7 z9pmBv4YaHCeE4gMC2uDAl6FZq3G5XtH+k/JhPnuWyHbxbIGFgrJDtknh5Nhx810cu/e c9044sJjQzJLTTR02Da/blu2CQTjwU9j2sKBZ5HCaT3DLiTyWM2nO5DkllficE7j9LHU xZgazXywZGyiiskDUH5XM8cNr51IryitkN1tOaregKVyVBJc4Vtkm2/AbZP/Kd7rfBV0 Voi071WsRELHbBUgAcqqS0UzTPHX0ljZ92wVPslcfAi9Uq3F5EeGhX0FtCmWlMOmZXjL Yxuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KBbsbgr6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si5832268pfb.398.2017.09.11.02.00.39; Mon, 11 Sep 2017 02:00:40 -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=@linaro.org header.s=google header.b=KBbsbgr6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbdIKJAh (ORCPT + 26 others); Mon, 11 Sep 2017 05:00:37 -0400 Received: from mail-io0-f172.google.com ([209.85.223.172]:36857 "EHLO mail-io0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751292AbdIKJAe (ORCPT ); Mon, 11 Sep 2017 05:00:34 -0400 Received: by mail-io0-f172.google.com with SMTP id d16so21843353ioj.3 for ; Mon, 11 Sep 2017 02:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HSNmuq0s8o7KuV9t6O8SmzD9pTOj4Wygq4Z4I9PNtMQ=; b=KBbsbgr6rRVGRaT0vkUzVADpP5Z9V3OCvbKvQwfDYx6ydMOVYgHp6mkvBXlVYHRQwP N5kDXquyXko1m0PTPAb/QKGBK9fgeJXh6RmUK6BiI96t4ZubLKYVdrMRK2iEJ1Y2hFng HGv1YrxH+zQLcEucf8U4fiWG8DTNHt6wJGBnc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HSNmuq0s8o7KuV9t6O8SmzD9pTOj4Wygq4Z4I9PNtMQ=; b=CFpUgIg8CdFcji4kW+8S9szX2waf1QvsoDi1Ka4lh5EYmlHXefddwyw/q8Qcbl+4EN wcFdjTfoQ3mdqn9gxXCwlEuvsNhMOo+Cc9OpTtwl9U+81zogdok3SZXeCnMSM9BXHO4R hJvaJMnr5Sc9G+pk5xTOildziV/4UiY2YT4rX+PsSV3Yxpa4tS3Fzc97hKYbngKwzISN YIe1AB7Bhg73I8d0wd+aJ4DiUYzYJXM2tzsyknW7j0gAmuONpG0GlLqW10r3I3VeUzE5 Q/e3NhuvrthxzHEGBQ6VDYRJuXXyxKPy+8vzihcD5RWOnWP2L3cKA7UNLYnRZ4+ACw+q jKsg== X-Gm-Message-State: AHPjjUhkdLIfTHUASW6vAaZP8YRNJsweTaid4pggMxdpz01XC7aCdbHo znnFQfbAIZpTLm+2 X-Google-Smtp-Source: AOwi7QCS67hFPINCKqvtvpnZJUmGnvpu0/DhNreXoi6ePQrf4e04Zryvcx9t9TLEiHzjB9ts/ReThg== X-Received: by 10.107.166.206 with SMTP id p197mr2860647ioe.63.1505120433787; Mon, 11 Sep 2017 02:00:33 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id a189sm4344146itd.21.2017.09.11.02.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 02:00:32 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Srinivas Kandagatla Subject: [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional Date: Mon, 11 Sep 2017 11:00:14 +0200 Message-Id: <20170911090014.16806-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170911090014.16806-1-srinivas.kandagatla@linaro.org> References: <20170911090014.16806-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada As you see in drivers/nvmem/Makefile, this C file is compiled only when CONFIG_NVMEM is y or m. So, IS_ENABLED(CONFIG_NVMEM) is always evaluated to 1 in this file. Signed-off-by: Masahiro Yamada Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.3 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index fdb8b7a..8649045 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -615,7 +615,7 @@ static struct nvmem_device *nvmem_find(const char *name) return to_nvmem_device(d); } -#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF) +#if IS_ENABLED(CONFIG_OF) /** * of_nvmem_device_get() - Get nvmem device from a given id * @@ -753,7 +753,7 @@ static struct nvmem_cell *nvmem_cell_get_from_list(const char *cell_id) return cell; } -#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF) +#if IS_ENABLED(CONFIG_OF) /** * of_nvmem_cell_get() - Get a nvmem cell from given device node and cell id *