projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
404956f
)
ARM: at91: pm: do not initialize pdev
author
Claudiu Beznea
<claudiu.beznea@microchip.com>
Thu, 15 Apr 2021 10:49:51 +0000
(13:49 +0300)
committer
Nicolas 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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-at91/pm.c
b/arch/arm/mach-at91/pm.c
index
5a6ce1d
..
65e1376
100644
(file)
--- 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))