From patchwork Mon Feb 18 06:08:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158575 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2122289jaa; Sun, 17 Feb 2019 22:09:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IbIE09orRJ79nH8gFxE24wEYIZC8jlWvHyesoNJmSjrW83gmvEkUmlBm5IqWJl/Tvmq/PZt X-Received: by 2002:a17:902:708b:: with SMTP id z11mr23750953plk.203.1550470164742; Sun, 17 Feb 2019 22:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550470164; cv=none; d=google.com; s=arc-20160816; b=QG6a9eIo958jqFksuBlg62HR3I4XSskRaYDeMGApVT7ECkJy2KtVE0eUuw6nXxS9mz vmNWRN95UblAAQVejTH33LVhEcrRPdfSUcnLqcc3MSj7MXqTaoyOAnSxtQ1ecVSE4bhj ezQK6d76SyFZmHego08M9L5FPLvCn7dx2euuZpwdKaCao7MisVMjsLSDXD7bSTkPPqA+ P/kk3qOVu5iat7IzzvN0Bs+TnR5JimE6HeEbwVRs3G2xjYMBOZeMbguPsxstt+kKfA4w vLhj+kRRt9jbwqmngDQEk+4j1MVK7M7nFt6NfCLT0S49HBIO6bdzxmAmahio43d4j8ZL utIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=RRs7iTOqt6oCNZE8ATx0fL2NncDfzADyNLizR6ngoOM=; b=XraDmX4C6YxVT6SqinvNk6SvmBvoQ3z7bH+hix7tVtSc9cInxURSkTsjN/z9jhM3iT ZRrMeapxmo6P4Ljv1Sa2eocGutf2kzI9OY546J7RIdexrYs1UWUruJYLLD6kQb7JFMp9 eUp+SaMVPHzhyrgZnvI9BjdPyFDV3jAoFTOkCHwritfHPtnc5wrhlogm740VSjjO7tv3 kLV4XoK0ZY2lsXuKX4inXUvjnLU3p+AUH6HECf1BHWRraO6cg0AVazvtqHHylABaXghH 2yee0PByxWpkn9APIYIV29Viw8Q5AekPEXPHXxcutgx0FdGxm96P6PFSB6UyRCKm9vnT zDIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JdzuboHy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p74si12332562pfa.279.2019.02.17.22.09.24; Sun, 17 Feb 2019 22:09:24 -0800 (PST) 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 header.s=dec2015msa header.b=JdzuboHy; 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 S1726395AbfBRGJV (ORCPT + 32 others); Mon, 18 Feb 2019 01:09:21 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:56512 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbfBRGJV (ORCPT ); Mon, 18 Feb 2019 01:09:21 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x1I68mT5029459; Mon, 18 Feb 2019 15:08:48 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x1I68mT5029459 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550470128; bh=RRs7iTOqt6oCNZE8ATx0fL2NncDfzADyNLizR6ngoOM=; h=From:To:Cc:Subject:Date:From; b=JdzuboHyr8fARcNsPeIMRTGmnpltNU0H6EYxzI4WS/WlvGWo4K26x3ChgbYTS2P7r PxHPHwZ5hohxQhsnddB8geaw8T8Bygw1/6ewW2JkSUjKZyi+ivuVBLvJD5IaDiw8uE 5bEBGW8hH0njuTcy1np6iJboPOt7uRc6KTqqcBpo2w60WHsKOs/b0dXTT9PPKv+Ugt X9BQh+Snkg0oSInQgxZxz8jhQ/bs8sxqUswBjkghH2IzbEEpG9EFQ04+8mx+EEWvs1 UJBBWvKns6ZgrP+g/s2/LdKnTfOm+QWTSpr5FbPYuHvqusyQg/rBcYr0nWJCIk62gs ENnGhW/A+cOiA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Cc: Masahiro Yamada Subject: [PATCH] regulator: core: remove unused rdev_get_supply() Date: Mon, 18 Feb 2019 15:08:38 +0900 Message-Id: <1550470118-26648-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a remnant of commit 70a7fb80e85a ("regulator: core: Fix nested locking of supplies"). Signed-off-by: Masahiro Yamada --- drivers/regulator/core.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.7.4 diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b9d7b45..bc25a17 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -145,14 +145,6 @@ static bool regulator_ops_is_valid(struct regulator_dev *rdev, int ops) return false; } -static inline struct regulator_dev *rdev_get_supply(struct regulator_dev *rdev) -{ - if (rdev && rdev->supply) - return rdev->supply->rdev; - - return NULL; -} - /** * regulator_lock_nested - lock a single regulator * @rdev: regulator source