So you suggest we carry along _TWO_ compatible sets of calls,
and hope someday people use the right set, and don't mix them?
I don't think this is a good idea.
Thanks to some of the drivers using pointers to some of the calls
(like request_region), macros can't expand to anything more than
a differnet name - this is very limiting.
Here is one other solution I'm willing to accept:
1) All of the following become deprecated:
request_region() release_region() check_region()
request_dma() free_dma()
No architecture can use them anymore.
2) Stubs for the above can stay in the kernel as long as required.
Use of these stubs will produce a warning message, to
encourage people to pester the developers to change.
This will _ONLY_ affect separately maintained modules!
3) __ALL__ references to the old API in the kernel will be removed,
and replaced with the equivalent request_hw_resource() or
release_hw_resource() calls.
Note: The PnP kernel patch originally used this approach, so going
back to it is possible (it is a lot of work though, and a pain
to maintain in parallel to the kernel source).
What does everyone think?
-- Andrew E. Mileski mailto:aem@ott.hookup.net Linux Plug-and-Play Kernel Project http://www.redhat.com/linux-info/pnp/ XFree86 Matrox Team http://www.bf.rmit.edu.au/~ajv/xf86-matrox.html