From: Rafael J. Wysocki Date: Fri, 3 Dec 2021 16:51:59 +0000 (+0100) Subject: powercap: DTPM: Drop unused local variable from init_dtpm() X-Git-Tag: baikal/aarch64/sdk6.1~5165^2^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=e8f560dda6dae1e42b0052f02f64406ade3cbf34;p=kernel.git powercap: DTPM: Drop unused local variable from init_dtpm() The dtpm_descr variable in init_dtpm() is not used after commit a59a56ccac1c ("powercap/drivers/dtpm: Disable DTPM at boot time"), so drop it. Fixes: a59a56ccac1c ("powercap/drivers/dtpm: Disable DTPM at boot time") Reported-by: Stephen Rothwell Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index fb35c5828bfb5..2a5c1829aab79 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");