hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux_exportfs.c
....@@ -59,7 +59,9 @@
5959 {
6060 int ret = BCME_ERROR;
6161 if (inode) {
62
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
62
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
63
+ ret = single_open(file, 0, pde_data(inode));
64
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
6365 ret = single_open(file, 0, PDE_DATA(inode));
6466 #else
6567 /* This feature is not supported for lower kernel versions */