Skip to content

Commit fccf516

Browse files
committed
Merge tag 'at91-5.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/fixes
AT91 fixes for 5.1 - fix a typo in sama5d2 pinmuxing which concerns the ISC data 0 signal - fix a kobject reference leak * tag 'at91-5.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: arm/mach-at91/pm : fix possible object reference leak ARM: dts: at91: Fix typo in ISC_D0 on PC9 Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents a970828 + ba5e60c commit fccf516

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

arch/arm/boot/dts/sama5d2-pinfunc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
#define PIN_PC9__GPIO PINMUX_PIN(PIN_PC9, 0, 0)
519519
#define PIN_PC9__FIQ PINMUX_PIN(PIN_PC9, 1, 3)
520520
#define PIN_PC9__GTSUCOMP PINMUX_PIN(PIN_PC9, 2, 1)
521-
#define PIN_PC9__ISC_D0 PINMUX_PIN(PIN_PC9, 2, 1)
521+
#define PIN_PC9__ISC_D0 PINMUX_PIN(PIN_PC9, 3, 1)
522522
#define PIN_PC9__TIOA4 PINMUX_PIN(PIN_PC9, 4, 2)
523523
#define PIN_PC10 74
524524
#define PIN_PC10__GPIO PINMUX_PIN(PIN_PC10, 0, 0)

arch/arm/mach-at91/pm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,13 +591,13 @@ static int __init at91_pm_backup_init(void)
591591

592592
np = of_find_compatible_node(NULL, NULL, "atmel,sama5d2-securam");
593593
if (!np)
594-
goto securam_fail;
594+
goto securam_fail_no_ref_dev;
595595

596596
pdev = of_find_device_by_node(np);
597597
of_node_put(np);
598598
if (!pdev) {
599599
pr_warn("%s: failed to find securam device!\n", __func__);
600-
goto securam_fail;
600+
goto securam_fail_no_ref_dev;
601601
}
602602

603603
sram_pool = gen_pool_get(&pdev->dev, NULL);
@@ -620,6 +620,8 @@ static int __init at91_pm_backup_init(void)
620620
return 0;
621621

622622
securam_fail:
623+
put_device(&pdev->dev);
624+
securam_fail_no_ref_dev:
623625
iounmap(pm_data.sfrbu);
624626
pm_data.sfrbu = NULL;
625627
return ret;

0 commit comments

Comments
 (0)