ARM: at91: pm: do not initialize pdev
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 15 Apr 2021 10:49:51 +0000 (13:49 +0300)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Mon, 19 Jul 2021 12:32:12 +0000 (14:32 +0200)
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
arch/arm/mach-at91/pm.c

index 5a6ce1d..65e1376 100644 (file)
@@ -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))