forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/soc/ti/wkup_m3_ipc.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * AMx3 Wkup M3 IPC driver
34 *
45 * Copyright (C) 2015 Texas Instruments, Inc.
56 *
67 * Dave Gerlach <d-gerlach@ti.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
168 */
179
1810 #include <linux/err.h>
....@@ -57,6 +49,7 @@
5749 static struct wkup_m3_ipc *m3_ipc_state;
5850
5951 static const struct wkup_m3_wakeup_src wakeups[] = {
52
+ {.irq_nr = 16, .src = "PRCM"},
6053 {.irq_nr = 35, .src = "USB0_PHY"},
6154 {.irq_nr = 36, .src = "USB1_PHY"},
6255 {.irq_nr = 40, .src = "I2C0"},
....@@ -454,9 +447,9 @@
454447 }
455448
456449 irq = platform_get_irq(pdev, 0);
457
- if (!irq) {
450
+ if (irq < 0) {
458451 dev_err(&pdev->dev, "no irq resource\n");
459
- return -ENXIO;
452
+ return irq;
460453 }
461454
462455 ret = devm_request_irq(dev, irq, wkup_m3_txev_handler,