| .. | .. | 
|---|
|  | 1 | +// SPDX-License-Identifier: GPL-2.0-only | 
|---|
| 1 | 2 | /* | 
|---|
| 2 | 3 | * Copyright (C) 2007-2011 Freescale Semiconductor, Inc. | 
|---|
| 3 | 4 | * | 
|---|
| .. | .. | 
|---|
| 5 | 6 | *	   Jason Jin <Jason.jin@freescale.com> | 
|---|
| 6 | 7 | * | 
|---|
| 7 | 8 | * The hwirq alloc and free code reuse from sysdev/mpic_msi.c | 
|---|
| 8 |  | - * | 
|---|
| 9 |  | - * This program is free software; you can redistribute it and/or | 
|---|
| 10 |  | - * modify it under the terms of the GNU General Public License | 
|---|
| 11 |  | - * as published by the Free Software Foundation; version 2 of the | 
|---|
| 12 |  | - * License. | 
|---|
| 13 |  | - * | 
|---|
| 14 | 9 | */ | 
|---|
| 15 | 10 | #include <linux/irq.h> | 
|---|
| 16 | 11 | #include <linux/msi.h> | 
|---|
| .. | .. | 
|---|
| 216 | 211 | dev_err(&pdev->dev, | 
|---|
| 217 | 212 | "node %pOF has an invalid fsl,msi phandle %u\n", | 
|---|
| 218 | 213 | hose->dn, np->phandle); | 
|---|
|  | 214 | +			of_node_put(np); | 
|---|
| 219 | 215 | return -EINVAL; | 
|---|
| 220 | 216 | } | 
|---|
|  | 217 | +		of_node_put(np); | 
|---|
| 221 | 218 | } | 
|---|
| 222 | 219 |  | 
|---|
| 223 | 220 | for_each_pci_msi_entry(entry, pdev) { | 
|---|