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/8kJUicFAmbZvAIACgkQYKtH/8kJ
 Uif/bg/9ES2ggYaEPchPe9SD5O/lcS66vvb6QLwMYGoyC8jHy9aJNT8PAldl/VKv
 7yaQMID3AcDiZ7xnfn1QRbagYYklBxyPiwvMtRuHVhbJx/FyO9AKz1tUar9ALuoi
 XlFlWMIOWV44L4DtSFOVnyj/h5jOd+xZWBpq1+ZXsh412IdOSZY1diep87bdtGII
 UF0Cgc7oLrdNfqKLhJ+VX7+f0AnuRdYbA5rkAZY+gPb+ylOnlVjnO7puLOtPvjNP
 qRlePElYL4cGjorYqfpmRPVoNCbghyT850OBQbsp2udTF3rHBgAbtmr4GdWtOdBw
 uACH/4VxMyvmYDSJHvIw0Dn496grRyzY22981Cf6/VlFzSTF23+9yvpfSFucuPU3
 07NbdDKKmwYOD4dwgqOmNBcX+CDyR92o/JZ9wTrIXzJWVzoIVKjjm+YLRlugkzRE
 Om4xNnOeWSnUJRlbIEwRF+2QXW7SvSPBrKG7yKqPT7ulaid++Cr1mDRfF0Xr6fMs
 RL7KU89OzDNojlaOaENaEN6zb8mgbFEHWcNly69tUBZsdQ2f4w/nYFYVhnW7hCRt
 rfJsFt1fbfywR9WZWr9U1nl6nl1ZDKMSRwMImA4TI2x8Ahc2WkMuc7aDHXGnzncY
 H7K02wfx/PmzOgzCtlDlZZGli0YQzhKLuXfKqn4yd85fBQZKpus=
 =OdBY
 -----END PGP SIGNATURE-----

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

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-05 14:11:08 +00:00
commit 639d5f6dee
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");