diff options
-rw-r--r-- | arch/powerpc/platforms/cell/axon_msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/axon_msi.c b/arch/powerpc/platforms/cell/axon_msi.c index b9a97c4ae15a..d95e71dee91f 100644 --- a/arch/powerpc/platforms/cell/axon_msi.c +++ b/arch/powerpc/platforms/cell/axon_msi.c | |||
@@ -137,6 +137,7 @@ static struct axon_msic *find_msi_translator(struct pci_dev *dev) | |||
137 | 137 | ||
138 | tmp = dn; | 138 | tmp = dn; |
139 | dn = of_find_node_by_phandle(*ph); | 139 | dn = of_find_node_by_phandle(*ph); |
140 | of_node_put(tmp); | ||
140 | if (!dn) { | 141 | if (!dn) { |
141 | dev_dbg(&dev->dev, | 142 | dev_dbg(&dev->dev, |
142 | "axon_msi: msi-translator doesn't point to a node\n"); | 143 | "axon_msi: msi-translator doesn't point to a node\n"); |
@@ -154,7 +155,6 @@ static struct axon_msic *find_msi_translator(struct pci_dev *dev) | |||
154 | 155 | ||
155 | out_error: | 156 | out_error: |
156 | of_node_put(dn); | 157 | of_node_put(dn); |
157 | of_node_put(tmp); | ||
158 | 158 | ||
159 | return msic; | 159 | return msic; |
160 | } | 160 | } |