aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Beznea2021-04-15 13:49:51 +0300
committerNicolas Ferre2021-07-19 14:32:12 +0200
commit629ba8ee03a5b0536d53f0e67092e3dba884a576 (patch)
treef38f40c59737bd1cd0bfeac4e5f5bf76e9222421
parent404956f47c3c6fe300dfc9458ea9c3248d174850 (diff)
ARM: at91: pm: do not initialize pdev
There is no need to initialize pdev. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20210415105010.569620-6-claudiu.beznea@microchip.com
-rw-r--r--arch/arm/mach-at91/pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index 5a6ce1d88971..65e13769cf50 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -659,7 +659,7 @@ static int __init at91_pm_backup_init(void)
{
struct gen_pool *sram_pool;
struct device_node *np;
- struct platform_device *pdev = NULL;
+ struct platform_device *pdev;
int ret = -ENODEV;
if (!IS_ENABLED(CONFIG_SOC_SAMA5D2))