forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/platforms/cell/axon_msi.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
84 */
95
106
....@@ -230,6 +226,7 @@
230226 if (!prop) {
231227 dev_dbg(&dev->dev,
232228 "axon_msi: no msi-address-(32|64) properties found\n");
229
+ of_node_put(dn);
233230 return -ENOENT;
234231 }
235232
....@@ -484,10 +481,6 @@
484481
485482 snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn));
486483
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);
492485 }
493486 #endif /* DEBUG */