.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Freescale MPC85xx/MPC86xx RapidIO support |
---|
3 | 4 | * |
---|
.. | .. |
---|
15 | 16 | * |
---|
16 | 17 | * Copyright 2005 MontaVista Software, Inc. |
---|
17 | 18 | * 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. |
---|
23 | 19 | */ |
---|
24 | 20 | |
---|
25 | 21 | #include <linux/init.h> |
---|
.. | .. |
---|
509 | 505 | if (rc) { |
---|
510 | 506 | dev_err(&dev->dev, "Can't get %pOF property 'reg'\n", |
---|
511 | 507 | rmu_node); |
---|
| 508 | + of_node_put(rmu_node); |
---|
512 | 509 | goto err_rmu; |
---|
513 | 510 | } |
---|
| 511 | + of_node_put(rmu_node); |
---|
514 | 512 | rmu_regs_win = ioremap(rmu_regs.start, resource_size(&rmu_regs)); |
---|
515 | 513 | if (!rmu_regs_win) { |
---|
516 | 514 | dev_err(&dev->dev, "Unable to map rmu register window\n"); |
---|