.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2015, Sony Mobile Communications AB. |
---|
3 | 4 | * 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. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #include <linux/interrupt.h> |
---|
.. | .. |
---|
428 | 420 | } |
---|
429 | 421 | |
---|
430 | 422 | smp2p->ipc_regmap = syscon_node_to_regmap(syscon); |
---|
| 423 | + of_node_put(syscon); |
---|
431 | 424 | if (IS_ERR(smp2p->ipc_regmap)) |
---|
432 | 425 | return PTR_ERR(smp2p->ipc_regmap); |
---|
433 | 426 | |
---|
.. | .. |
---|
483 | 476 | goto report_read_failure; |
---|
484 | 477 | |
---|
485 | 478 | 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) |
---|
488 | 480 | return irq; |
---|
489 | | - } |
---|
490 | 481 | |
---|
491 | 482 | smp2p->mbox_client.dev = &pdev->dev; |
---|
492 | 483 | smp2p->mbox_client.knows_txdone = true; |
---|