[PATCH] check_region deprecated (maybe a nicer solution?)

Hi,

Those warnings about check_region being deprecated when compiling the 
comedi drivers for 2.6.x are starting to get to me :-)

The attached patch defines a REQUEST_REGION() macro to act as a 
replacement for the check_region()/request_region() pairs.  I stuck it 
in the linux/ioport.h compatibility header (cf. the REMAP_PAGE_RANGE() 
macro in the linux/mm.h compatibility header).

As this is a matter of style, maybe someone has opinions on a nicer way 
to do this, perhaps by defining a comedi_request_region() inline 
function somewhere, or perhaps by avoiding the gcc extention I used.

I haven't changed any drivers yet (except one driver on my local system 
for test purposes).  No point doing that until the name of the new macro 
or function is settled.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-03-08Z14:15:52