From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 06 Dec 2023 09:51:13 +0000
Subject: [PATCH] add dts config
---
kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/sdio_intf.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/sdio_intf.c b/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/sdio_intf.c
index 4497deb..4eca794 100644
--- a/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/sdio_intf.c
+++ b/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/sdio_intf.c
@@ -1191,8 +1191,8 @@
static int rtw_sdio_suspend(struct device *dev)
{
- struct sdio_func *func = NULL;
- struct dvobj_priv *psdpriv = NULL;
+ struct sdio_func *func = dev_to_sdio_func(dev);
+ struct dvobj_priv *psdpriv;
struct pwrctrl_priv *pwrpriv = NULL;
_adapter *padapter = NULL;
struct debug_priv *pdbgpriv = NULL;
@@ -1204,11 +1204,7 @@
#endif
if (dev == NULL)
- goto exit_1;
-
- func = dev_to_sdio_func(dev);
- if (!func)
- goto exit_1;
+ goto exit;
psdpriv = sdio_get_drvdata(func);
if (psdpriv == NULL)
@@ -1230,7 +1226,6 @@
ret = rtw_suspend_common(padapter);
-exit:
#ifdef CONFIG_RTW_SDIO_PM_KEEP_POWER
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34))
/* Android 4.0 don't support WIFI close power */
@@ -1251,7 +1246,7 @@
}
#endif
#endif
-exit_1:
+exit:
return ret;
}
int rtw_resume_process(_adapter *padapter)
--
Gitblit v1.6.2