| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2014, Sony Mobile Communications AB. |
|---|
| 3 | 4 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. |
|---|
| 4 | 5 | * Author: Bjorn Andersson <bjorn.andersson@sonymobile.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 8 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 569 | 561 | clk_prepare_enable(rpm->ramclk); /* Accepts NULL */ |
|---|
| 570 | 562 | |
|---|
| 571 | 563 | irq_ack = platform_get_irq_byname(pdev, "ack"); |
|---|
| 572 | | - if (irq_ack < 0) { |
|---|
| 573 | | - dev_err(&pdev->dev, "required ack interrupt missing\n"); |
|---|
| 564 | + if (irq_ack < 0) |
|---|
| 574 | 565 | return irq_ack; |
|---|
| 575 | | - } |
|---|
| 576 | 566 | |
|---|
| 577 | 567 | irq_err = platform_get_irq_byname(pdev, "err"); |
|---|
| 578 | | - if (irq_err < 0) { |
|---|
| 579 | | - dev_err(&pdev->dev, "required err interrupt missing\n"); |
|---|
| 568 | + if (irq_err < 0) |
|---|
| 580 | 569 | return irq_err; |
|---|
| 581 | | - } |
|---|
| 582 | 570 | |
|---|
| 583 | 571 | irq_wakeup = platform_get_irq_byname(pdev, "wakeup"); |
|---|
| 584 | | - if (irq_wakeup < 0) { |
|---|
| 585 | | - dev_err(&pdev->dev, "required wakeup interrupt missing\n"); |
|---|
| 572 | + if (irq_wakeup < 0) |
|---|
| 586 | 573 | return irq_wakeup; |
|---|
| 587 | | - } |
|---|
| 588 | 574 | |
|---|
| 589 | 575 | match = of_match_device(qcom_rpm_of_match, &pdev->dev); |
|---|
| 590 | 576 | if (!match) |
|---|