We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0954458 + 38a991d commit 8016001Copy full SHA for 8016001
examples/devicemodel.c
@@ -23,19 +23,21 @@ static int devicemodel_probe(struct platform_device *dev)
23
24
return 0;
25
}
26
+
27
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0)
28
static void devicemodel_remove(struct platform_device *dev)
29
+{
30
+ pr_info("devicemodel example removed\n");
31
+ /* Your device removal code */
32
+}
33
#else
34
static int devicemodel_remove(struct platform_device *dev)
-#endif
35
{
36
pr_info("devicemodel example removed\n");
-
37
/* Your device removal code */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
38
39
40
+#endif
41
42
static int devicemodel_suspend(struct device *dev)
43
0 commit comments