summaryrefslogtreecommitdiff
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2019-08-26 15:37:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 14:09:59 +0300
commit6437ec272edaf85472b277c877857342da489e8c (patch)
treec29ae6f2d8528e0165ea5c008dc8c5c74326c279 /drivers/devfreq
parent814f7fe56ebb210cbcf5f2ea52135d14cdc63fd1 (diff)
downloadlinux-6437ec272edaf85472b277c877857342da489e8c.tar.xz
PM / devfreq: passive: fix compiler warning
[ Upstream commit 0465814831a926ce2f83e8f606d067d86745234e ] The recent commit of PM / devfreq: passive: Use non-devm notifiers had incurred compiler warning, "unused variable 'dev'". Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/governor_passive.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c
index 22fd41b4c109..8cfb69749d49 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -152,7 +152,6 @@ static int devfreq_passive_notifier_call(struct notifier_block *nb,
static int devfreq_passive_event_handler(struct devfreq *devfreq,
unsigned int event, void *data)
{
- struct device *dev = devfreq->dev.parent;
struct devfreq_passive_data *p_data
= (struct devfreq_passive_data *)devfreq->data;
struct devfreq *parent = (struct devfreq *)p_data->parent;