blob: 6dca708edf7759a35108a9d121fb600dd8abf8e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -154,7 +154,11 @@ static SIMPLE_DEV_PM_OPS(wiphy_pm_ops, w
#define WIPHY_PM_OPS NULL
#endif
+#if LINUX_VERSION_IS_GEQ(6,2,0)
static const void *wiphy_namespace(const struct device *d)
+#else
+static const void *wiphy_namespace(struct device *d)
+#endif
{
struct wiphy *wiphy = container_of(d, struct wiphy, dev);
|