From patchwork Fri Jul 10 07:45:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 51009 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 59503228E5 for ; Fri, 10 Jul 2015 07:46:02 +0000 (UTC) Received: by lbbei7 with SMTP id ei7sf8186839lbb.3 for ; Fri, 10 Jul 2015 00:46:01 -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:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=iBZQ+o3DdViftkGIGsV1VJOaXRUSQRFiQHUmSeOOyDc=; b=UmbeXaHVoqVDhWY7zNwCvSQVNOeDCTyXe1B06ZwQNDaVsD44OF0pdT8/LHRGCUxUtm 5zC0++JTOSh0k7NEN4NLivbMqYa5ewbgT9yX5raCnK2D3rlMUy2oTXPzLQRgyH5+rfAn 2WDCjLJi8KlJPa4Ex7dLL46xfTogYXM66s8FS+3bhGwpGZBNjY/BBfRSsIW+FLn2+HZg rxkcgsW65PFD/S1t/wWgQ9evcj9B/vX/eSGfXk2h2EfZPs6CqOrG1+KTY5P1Rm2lvLjQ 7RViLaahRUvprcbWoulve5PxEEAId2Y7/K9bq8Ztn7RaUwiedYZm6QNBFKlh7EPj/c8a XIFg== X-Gm-Message-State: ALoCoQnZL5HaxwLtdOrCK7LmiLtfpzHMZQ0G/Nj6DCzgN8B0Kz7xMhhdNhcUlSAfcySZ02sb5wT0 X-Received: by 10.112.181.37 with SMTP id dt5mr10035887lbc.10.1436514361306; Fri, 10 Jul 2015 00:46:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.129 with SMTP id m1ls1089852laf.76.gmail; Fri, 10 Jul 2015 00:46:01 -0700 (PDT) X-Received: by 10.112.46.44 with SMTP id s12mr18716489lbm.114.1436514361129; Fri, 10 Jul 2015 00:46:01 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id sb9si6996653lbb.7.2015.07.10.00.46.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 00:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagc2 with SMTP id c2so257459381lag.3 for ; Fri, 10 Jul 2015 00:46:00 -0700 (PDT) X-Received: by 10.152.5.197 with SMTP id u5mr17136193lau.76.1436514360877; Fri, 10 Jul 2015 00:46:00 -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.112.108.230 with SMTP id hn6csp1181893lbb; Fri, 10 Jul 2015 00:45:59 -0700 (PDT) X-Received: by 10.68.190.41 with SMTP id gn9mr38595395pbc.113.1436514359106; Fri, 10 Jul 2015 00:45:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wt10si13227931pab.236.2015.07.10.00.45.57; Fri, 10 Jul 2015 00:45:59 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbbGJHpx (ORCPT + 29 others); Fri, 10 Jul 2015 03:45:53 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:34157 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752603AbbGJHpl (ORCPT ); Fri, 10 Jul 2015 03:45:41 -0400 Received: by wifm2 with SMTP id m2so38694101wif.1 for ; Fri, 10 Jul 2015 00:45:40 -0700 (PDT) X-Received: by 10.194.178.99 with SMTP id cx3mr37576785wjc.33.1436514340699; Fri, 10 Jul 2015 00:45:40 -0700 (PDT) Received: from localhost.localdomain (host86-178-207-130.range86-178.btcentralplus.com. [86.178.207.130]) by smtp.gmail.com with ESMTPSA id w8sm5078102wja.15.2015.07.10.00.45.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jul 2015 00:45:39 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, broonie@kernel.org, lgirdwood@gmail.com, Lee Jones Subject: [PATCH 1/3] regulator: pwm-regulator: Fix 'unused-variable' warning Date: Fri, 10 Jul 2015 08:45:34 +0100 Message-Id: <1436514336-2075-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 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: lee.jones@linaro.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.215.54 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: , drivers/regulator/pwm-regulator.c: In function 'pwm_regulator_init_continuous': drivers/regulator/pwm-regulator.c:202:22: warning: unused variable 'np' [-Wunused-variable] struct device_node *np = pdev->dev.of_node; ^ Reported-by: kbuild test robot Signed-off-by: Lee Jones --- drivers/regulator/pwm-regulator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index 936e387..a4c2ce9 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -198,8 +198,6 @@ static int pwm_regulator_init_table(struct platform_device *pdev, static int pwm_regulator_init_continuous(struct platform_device *pdev, struct pwm_regulator_data *drvdata) { - struct device_node *np = pdev->dev.of_node; - pwm_regulator_desc.ops = &pwm_regulator_voltage_continuous_ops; pwm_regulator_desc.continuous_voltage_range = true;