Wrong.
SET_MODULE_OWNER works in 2.2 _and earlier_... given some compat glue in
a "#include <kcompat>" macros.
You may take a look at "kcompat" for further examples.
http://sf.net/projects/gkernel/ I provide an example of how to get a
net driver from 2.4 running under 2.2, such that the 2.4 driver
-appears- to be completely free of compatibility glue.
The only sticking points in such glue are when structure members are
directly exposed in the source code. That cannot be worked around with
cpp magic. This is why SET_MODULE_OWNER exists, this is why
pci_{get,set}_drvdata() exist, and so on.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/