1 /// Remove .owner field if calls are used which set it automatically
4 // Copyright: (C) 2014 Wolfram Sang. GPL v2.
12 declarer name module_platform_driver;
13 declarer name module_platform_driver_probe;
17 module_platform_driver(__driver);
19 module_platform_driver_probe(__driver, ...);
22 @fix1 depends on match1 && patch && !context && !org && !report@
23 identifier match1.__driver;
25 static struct platform_driver __driver = {
27 - .owner = THIS_MODULE,
35 platform_driver_register(&__driver)
37 platform_driver_probe(&__driver, ...)
39 platform_create_bundle(&__driver, ...)
42 @fix2 depends on match2 && patch && !context && !org && !report@
43 identifier match2.__driver;
45 static struct platform_driver __driver = {
47 - .owner = THIS_MODULE,
51 // ----------------------------------------------------------------------------
53 @fix1_context depends on match1 && !patch && (context || org || report)@
54 identifier match1.__driver;
58 static struct platform_driver __driver = {
60 * .owner@j0 = THIS_MODULE,
64 @fix2_context depends on match2 && !patch && (context || org || report)@
65 identifier match2.__driver;
69 static struct platform_driver __driver = {
71 * .owner@j0 = THIS_MODULE,
75 // ----------------------------------------------------------------------------
77 @script:python fix1_org depends on org@
78 j0 << fix1_context.j0;
81 msg = "No need to set .owner here. The core will do it."
82 coccilib.org.print_todo(j0[0], msg)
84 @script:python fix2_org depends on org@
85 j0 << fix2_context.j0;
88 msg = "No need to set .owner here. The core will do it."
89 coccilib.org.print_todo(j0[0], msg)
91 // ----------------------------------------------------------------------------
93 @script:python fix1_report depends on report@
94 j0 << fix1_context.j0;
97 msg = "No need to set .owner here. The core will do it."
98 coccilib.report.print_report(j0[0], msg)
100 @script:python fix2_report depends on report@
101 j0 << fix2_context.j0;
104 msg = "No need to set .owner here. The core will do it."
105 coccilib.report.print_report(j0[0], msg)