| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2007, Michael Ellerman, IBM Corporation. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | |
|---|
| .. | .. |
|---|
| 230 | 226 | if (!prop) { |
|---|
| 231 | 227 | dev_dbg(&dev->dev, |
|---|
| 232 | 228 | "axon_msi: no msi-address-(32|64) properties found\n"); |
|---|
| 229 | + of_node_put(dn); |
|---|
| 233 | 230 | return -ENOENT; |
|---|
| 234 | 231 | } |
|---|
| 235 | 232 | |
|---|
| .. | .. |
|---|
| 484 | 481 | |
|---|
| 485 | 482 | snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); |
|---|
| 486 | 483 | |
|---|
| 487 | | - if (!debugfs_create_file(name, 0600, powerpc_debugfs_root, |
|---|
| 488 | | - msic, &fops_msic)) { |
|---|
| 489 | | - pr_devel("axon_msi: debugfs_create_file failed!\n"); |
|---|
| 490 | | - return; |
|---|
| 491 | | - } |
|---|
| 484 | + debugfs_create_file(name, 0600, powerpc_debugfs_root, msic, &fops_msic); |
|---|
| 492 | 485 | } |
|---|
| 493 | 486 | #endif /* DEBUG */ |
|---|