forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/mfd/qcom_rpm.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014, Sony Mobile Communications AB.
34 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
45 * 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.
146 */
157
168 #include <linux/module.h>
....@@ -569,22 +561,16 @@
569561 clk_prepare_enable(rpm->ramclk); /* Accepts NULL */
570562
571563 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)
574565 return irq_ack;
575
- }
576566
577567 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)
580569 return irq_err;
581
- }
582570
583571 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)
586573 return irq_wakeup;
587
- }
588574
589575 match = of_match_device(qcom_rpm_of_match, &pdev->dev);
590576 if (!match)