hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/sysdev/fsl_rio.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Freescale MPC85xx/MPC86xx RapidIO support
34 *
....@@ -15,11 +16,6 @@
1516 *
1617 * Copyright 2005 MontaVista Software, Inc.
1718 * Matt Porter <mporter@kernel.crashing.org>
18
- *
19
- * This program is free software; you can redistribute it and/or modify it
20
- * under the terms of the GNU General Public License as published by the
21
- * Free Software Foundation; either version 2 of the License, or (at your
22
- * option) any later version.
2319 */
2420
2521 #include <linux/init.h>
....@@ -509,8 +505,10 @@
509505 if (rc) {
510506 dev_err(&dev->dev, "Can't get %pOF property 'reg'\n",
511507 rmu_node);
508
+ of_node_put(rmu_node);
512509 goto err_rmu;
513510 }
511
+ of_node_put(rmu_node);
514512 rmu_regs_win = ioremap(rmu_regs.start, resource_size(&rmu_regs));
515513 if (!rmu_regs_win) {
516514 dev_err(&dev->dev, "Unable to map rmu register window\n");