hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/soc/qcom/smp2p.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2015, Sony Mobile Communications AB.
34 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 and
7
- * only version 2 as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include <linux/interrupt.h>
....@@ -428,6 +420,7 @@
428420 }
429421
430422 smp2p->ipc_regmap = syscon_node_to_regmap(syscon);
423
+ of_node_put(syscon);
431424 if (IS_ERR(smp2p->ipc_regmap))
432425 return PTR_ERR(smp2p->ipc_regmap);
433426
....@@ -483,10 +476,8 @@
483476 goto report_read_failure;
484477
485478 irq = platform_get_irq(pdev, 0);
486
- if (irq < 0) {
487
- dev_err(&pdev->dev, "unable to acquire smp2p interrupt\n");
479
+ if (irq < 0)
488480 return irq;
489
- }
490481
491482 smp2p->mbox_client.dev = &pdev->dev;
492483 smp2p->mbox_client.knows_txdone = true;