Integrator fixes for the v6.12 kernel cycle, some of_node_put():s

were missing in the SoC drivers.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEElDRnuGcz/wPCXQWMQRCzN7AZXXMFAmbW7PIACgkQQRCzN7AZ
 XXPZ9BAAjAABqgrENcKSTdxVeVbYywTE4Ar2ec7CONriOi7jb4dDvYdBQlcGhPPa
 1Katu4EiE5iU70dp2QoFRXO1Xn9kEMQ1QeIlwwoAAQ/QPVnr6S+nYjkZVeRm7H00
 vtwbp7F32u90z4V97YxzfiAkJmOsBdEyiOl2sSRuWZF6qMwlU1MOh8lh1P0caz2t
 mNCEgdrlCpZu9EvV9nqe+w0xqVs3E4+3fTSQhBk7TzZD0YpsQHQTq5KajPBkYqp7
 Pj1uedPonUfZPhtWAwKEBcHuRpZiEiRGUJe4biBZ8BIcjtUxKPtAPAwu54aZ6aDN
 FY6rQWd3OWA8qIqHELDgoLSWTocwwgoq4AdWwk70nFwqJRr7qKMeDAiwpplgGavE
 v3uUVJbMoi88l7R7vufsbRnUiNPB54V2zEnYlODT6p5HshoImAQdCVOG/w1OBPuN
 JuazK5pVJT6GIPvpuYJ6W7bezgyiManCLC3AWvCRWZ0bytIJXhtKFIf4fD0QXbqp
 jL1HxefBFLEBuvb8F9YBcYTmoq8Y/P/uTeaFberiadAkl+6xshsMtQ5Q7hK5YObx
 lvYgZ0cnbAArAevvh5tJE7oi5f4tixXA00FrMClutSj2RZpIlL26FusFVj9ot2sk
 ZlhoTt4SeShO3yfCkeRl5P7kgbrsxaOkKO8OjRs/OXHS/tQcTK4=
 =vbJH
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEiK/NIGsWEZVxh/FrYKtH/8kJUicFAmbYKRAACgkQYKtH/8kJ
 Uie6wg//dRr+AK/oBBn0pNYkCFh9lDGy0k0Y9C9C8BadgsMSkwv6IJQIFyrDdWYg
 JTnvMX34c6GkWfkxbri8mEX0tGmvSo/5d0V7bgTu6+2W5jU/zyK3YXuK9cFzU74x
 GL9KIglXbmy/uRYfaXp5gLdAjqLT/4AJgkCOtuHh3LcOfQYsJin2FOHD1gFEUBrk
 LIHTKht6JAffXlw/CBxSu5FzeHGtAPL4Rbd6wQpv0hfXB/1BMgvW89YIGsY2/soE
 E6i0/CN88MHuizXGBT+42TkO1xSszyVzMkGlHLDXpqdl27cn3qkYLcXKR1SiMKcs
 1WTjo+CmAjm+2o8BaBWV2ntM7PVGU7zGw6RullWG6Mws+1ZKkOhbthunQRKnEsb4
 LW5VH0CcXFVAxBSBMeXiXfJStAyAqUK5lfkmLq9U34kJtylH30F/UNx6FG1BT1Aa
 PnZEL9XuyAfpy2B0wwATkLGjHtiUdzRt7N+2DJ70IJb+PW5xD0M3T04rKOal+yQq
 yKw5rVBJAW0shBZxb9PKarK5MWiBY9L4YtvzcAzFxrowM0vYB/3LSC/In1Nfry5E
 cYEE/WAjEmW2V8Df0MlburXs+gmSkTNnnEYj6WD09oXWShtS6AyyumoiArj35Rh0
 kPmgIhfTA6wWm22134/MiDdJjrZt25Cd1vpjwK2JXym9atg88d0=
 =N2ke
 -----END PGP SIGNATURE-----

Merge tag 'integrator-v6.12' of https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator into soc/arm

Integrator fixes for the v6.12 kernel cycle, some of_node_put():s
were missing in the SoC drivers.

* tag 'integrator-v6.12' of https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator:
  bus: integrator-lm: fix OF node leak in probe()
  ARM: versatile: fix OF node leak in CPUs prepare

Link: https://lore.kernel.org/r/CACRpkdahXECZXWA5uv=SZtkzU0E++fQj7QWK8kYuH0-asLUPqg@mail.gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2024-09-04 09:31:55 +00:00
commit 773df3eb14
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus)
return;
}
map = syscon_node_to_regmap(np);
of_node_put(np);
if (IS_ERR(map)) {
pr_err("PLATSMP: No syscon regmap\n");
return;

View File

@ -85,6 +85,7 @@ static int integrator_ap_lm_probe(struct platform_device *pdev)
return -ENODEV;
}
map = syscon_node_to_regmap(syscon);
of_node_put(syscon);
if (IS_ERR(map)) {
dev_err(dev,
"could not find Integrator/AP system controller\n");