summaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-03 17:51:59 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-03 17:51:59 +0100
commit1ac5e21d43b2325854cf3b36b1509b28468dc6fd (patch)
treed030abbcd5f2d66e524a36941c8ca041d97afca8 /drivers/powercap
parentf751db8adaeaa4a5b200121973633ea45f4bb395 (diff)
downloadlinux-1ac5e21d43b2325854cf3b36b1509b28468dc6fd.tar.gz
linux-1ac5e21d43b2325854cf3b36b1509b28468dc6fd.tar.bz2
linux-1ac5e21d43b2325854cf3b36b1509b28468dc6fd.zip
powercap: DTPM: Drop unused local variable from init_dtpm()
The dtpm_descr variable in init_dtpm() is not used after commit f751db8adaea ("powercap/drivers/dtpm: Disable DTPM at boot time"), so drop it. Fixes: f751db8adaea ("powercap/drivers/dtpm: Disable DTPM at boot time") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/powercap')
-rw-r--r--drivers/powercap/dtpm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c
index fb35c5828bfb..2a5c1829aab7 100644
--- a/drivers/powercap/dtpm.c
+++ b/drivers/powercap/dtpm.c
@@ -463,8 +463,6 @@ int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent)
static int __init init_dtpm(void)
{
- struct dtpm_descr *dtpm_descr;
-
pct = powercap_register_control_type(NULL, "dtpm", NULL);
if (IS_ERR(pct)) {
pr_err("Failed to register control type\n");