mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 10:18:23 +01:00
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
|
From 9a649d7ad384907ba8f62ba50a6fd7e524d8ce25 Mon Sep 17 00:00:00 2001
|
||
|
From: root <Gunjan Gupta>
|
||
|
Date: Sun, 17 Sep 2023 20:45:44 +0000
|
||
|
Subject: [PATCH] drivers: uwe5622: fix compilation on 6.3+ kernels
|
||
|
|
||
|
---
|
||
|
.../wireless/uwe5622/unisocwcn/platform/wcn_boot.c | 11 +++--------
|
||
|
1 file changed, 3 insertions(+), 8 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/net/wireless/uwe5622/unisocwcn/platform/wcn_boot.c b/drivers/net/wireless/uwe5622/unisocwcn/platform/wcn_boot.c
|
||
|
index 220bac67ddd0..b243b39c2133 100644
|
||
|
--- a/drivers/net/wireless/uwe5622/unisocwcn/platform/wcn_boot.c
|
||
|
+++ b/drivers/net/wireless/uwe5622/unisocwcn/platform/wcn_boot.c
|
||
|
@@ -1371,15 +1371,13 @@ static int marlin_registsr_bt_wake(struct device *dev)
|
||
|
{
|
||
|
struct device_node *np;
|
||
|
int bt_wake_host_gpio, ret = 0;
|
||
|
- struct gpio_config config;
|
||
|
|
||
|
np = of_find_compatible_node(NULL, NULL, "allwinner,sunxi-btlpm");
|
||
|
if (!np) {
|
||
|
WCN_ERR("dts node for bt_wake not found");
|
||
|
return -EINVAL;
|
||
|
}
|
||
|
- bt_wake_host_gpio = of_get_named_gpio_flags(np, "bt_hostwake", 0,
|
||
|
- (enum of_gpio_flags *)&config);
|
||
|
+ bt_wake_host_gpio = of_get_named_gpio(np, "bt_hostwake", 0);
|
||
|
if (!gpio_is_valid(bt_wake_host_gpio)) {
|
||
|
WCN_ERR("bt_hostwake irq is invalid: %d\n",
|
||
|
bt_wake_host_gpio);
|
||
|
@@ -1403,11 +1401,8 @@ static int marlin_registsr_bt_wake(struct device *dev)
|
||
|
|
||
|
marlin_dev->bt_wake_host_int_num = gpio_to_irq(bt_wake_host_gpio);
|
||
|
|
||
|
- WCN_INFO("%s bt_hostwake gpio=%d mul-sel=%d pull=%d "
|
||
|
- "drv_level=%d data=%d intnum=%d\n",
|
||
|
- __func__, config.gpio, config.mul_sel, config.pull,
|
||
|
- config.drv_level, config.data,
|
||
|
- marlin_dev->bt_wake_host_int_num);
|
||
|
+ WCN_INFO("%s bt_hostwake gpio=%d intnum=%d\n", __func__,
|
||
|
+ bt_wake_host_gpio, marlin_dev->bt_wake_host_int_num);
|
||
|
|
||
|
ret = device_init_wakeup(dev, true);
|
||
|
if (ret < 0) {
|
||
|
--
|
||
|
2.34.1
|
||
|
|