From patchwork Thu Jul 26 22:27:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 142995 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp108448ljj; Thu, 26 Jul 2018 15:27:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfoRliAXVzCMvD2AS4JeeFrYxe5Uxyz7lHtMC01CpwgT4zPoaYHpgjdaOJBFTKFWqUb6Baq X-Received: by 2002:a63:d04f:: with SMTP id s15-v6mr3708203pgi.42.1532644051871; Thu, 26 Jul 2018 15:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532644051; cv=none; d=google.com; s=arc-20160816; b=O+/F/tbO7NVoKSNlWM5T5ygwLzWI4xRO2vcHWaMRLLBK9GIINthjdN0dIKxauxjaKk ksqDWG6FLEf9BZI9g6KqybjRKI7CKLKn8QnvUUv5E3JfyOVqES0Pc5bqXUWFpmdjWTOt P+QUwnjYme2Eb7yE75/qX4LTFN56JT2pj0aBKYkvn9FF/Cj+RGH4u5ke1o/QNP9+r4b8 NeJRekGkKaFGceZi6Wp+ZC68aB9tswHYltqWQMD4Mx40qSdYX3qLMHz9ZVfCrpRSRWIN IcPA6GFF07I3nDeOENC+/i9CQdHX1ISxHKK2yw/GfF41RxDT5Wl3P+ytuFq+/zlzYQ+G pJZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=i88VPyqxirnDxOIMowsNzOgVnm2djI5bZ9oLRUQSQrF/90pA5JLnq4F4nqnJZK7QW6 9oLWFjq/AjqJZiZFkDXCQfg/1TGe0DT0ffXGtlcO7vcnm7vvSVY2ikoqpnJb987TeKe9 Pa4Pw++l1+KlnmhzsLVC3dWmIg05pxIS8ZxZabOUsqW0KUbi0uOuMq6B61BxNHTSOjBk eo32z2eLCzRYg7Nr9jx6RD4L4v/M8uYSCrISi6vIqrIIJRW6tiGgzuHAajPu2Vs5rIXG O5OKF+fYLWbd00eCStO2qZHaJQ+pqWO02e4USaHHQ0mPuSgjWz4u829sEh1sNk+oIlQL 9KNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fQpurh9F; 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 f23-v6si2038068plr.247.2018.07.26.15.27.31; Thu, 26 Jul 2018 15:27:31 -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=fQpurh9F; 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 S1731805AbeGZXqU (ORCPT + 31 others); Thu, 26 Jul 2018 19:46:20 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38424 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731521AbeGZXqU (ORCPT ); Thu, 26 Jul 2018 19:46:20 -0400 Received: by mail-lf1-f67.google.com with SMTP id a4-v6so2256728lff.5 for ; Thu, 26 Jul 2018 15:27:28 -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:mime-version :content-transfer-encoding; bh=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=fQpurh9FLoh8n3Y83/hZBzi6fQUlQ7w2l9v1uIFfRfoMfb0Q/8R3/3rwtsxJusjSkk ccbYRrfWEgtxq+VYPFSi3Mg1UHdAJW7Pv11G70Trumm/DeGOPkob7csFHPYMtbq53Wem z4M2fCnqEnwIPTLTtiw5FuWwrJ0MAS5BH27AM= 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:mime-version :content-transfer-encoding; bh=QfSMIH9qvOZIUIIIM+Fz4GDtMrQxsyQ5z5I74zumA7k=; b=LjPYBh/FZq8KwoFQtn6irgzHh6eCHteqjiaRK3YhWU1o8Qy3Kmhh5COi09gIekMBez efZE4JDNHvjKq5PZMntOXgO0GJDceSd04a4RUxnjaVMWut9G5L4tdq6Mx3eENozwhaxW tm0/tZtb+Ogrp9e9JhsuC9DH3Ku5KovhrNCHLK6M9yj3Ntn+aNJUs8M5ReKhZQbDtaOU gZVnqzMsgN9AgYd/Dz9fhny20szRVfeCIWQ3DG053uE+DfOw5edzagWCaBFDntEui3We 1boDhjC8ELiXXR24PPFghzh7zPkGVnjFymjuxheHCfLHnNdfbtjBzbA1tvSGyW6l5ScD EVKw== X-Gm-Message-State: AOUpUlE8HwhOst/ViQIaOBReES5UYbUV8jTVhxBUPLzl8wimiIDocBiw qWcWz0eHYgHpvxBgyoDBL9Am1A== X-Received: by 2002:a19:988f:: with SMTP id a137-v6mr2592798lfe.128.1532644047364; Thu, 26 Jul 2018 15:27:27 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id h9-v6sm330480lfc.47.2018.07.26.15.27.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jul 2018 15:27:26 -0700 (PDT) From: Anders Roxell To: gregory.clement@bootlin.com, sboyd@kernel.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents Date: Fri, 27 Jul 2018 00:27:21 +0200 Message-Id: <20180726222721.5787-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building armada-37xx-periph, num_parents isn't used in function clk_pm_cpu_get_parent: drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’: drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable] int num_parents = clk_hw_get_num_parents(hw); ^~~~~~~~~~~ Remove the declaration of num_parents to dispose the warning. Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent") Signed-off-by: Anders Roxell --- drivers/clk/mvebu/armada-37xx-periph.c | 1 - 1 file changed, 1 deletion(-) -- 2.18.0 diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 287e98a7cff4..499f5962c8b0 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -416,7 +416,6 @@ static unsigned int armada_3700_pm_dvfs_get_cpu_parent(struct regmap *base) static u8 clk_pm_cpu_get_parent(struct clk_hw *hw) { struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw); - int num_parents = clk_hw_get_num_parents(hw); u32 val; if (armada_3700_pm_dvfs_is_enabled(pm_cpu->nb_pm_base)) {