ath25: switch default kernel to 5.15
[openwrt/staging/ldir.git] / target / linux / at91 / patches-5.10 / 201-ARM-at91-pm-do-not-initialize-pdev.patch
1 From 31e25503bbad1fffd29fd074a46bd4858b65304f Mon Sep 17 00:00:00 2001
2 From: Claudiu Beznea <claudiu.beznea@microchip.com>
3 Date: Thu, 15 Apr 2021 13:49:51 +0300
4 Subject: [PATCH 201/247] ARM: at91: pm: do not initialize pdev
5
6 There is no need to initialize pdev.
7
8 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
9 Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
10 Link: https://lore.kernel.org/r/20210415105010.569620-6-claudiu.beznea@microchip.com
11 ---
12 arch/arm/mach-at91/pm.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/arch/arm/mach-at91/pm.c
16 +++ b/arch/arm/mach-at91/pm.c
17 @@ -674,7 +674,7 @@ static int __init at91_pm_backup_init(vo
18 {
19 struct gen_pool *sram_pool;
20 struct device_node *np;
21 - struct platform_device *pdev = NULL;
22 + struct platform_device *pdev;
23 int ret = -ENODEV;
24
25 if (!IS_ENABLED(CONFIG_SOC_SAMA5D2))