Quentin Lambert d681f11669 ide: remove deprecated use of pci api
Replace occurences of the pci api by appropriate call to the dma api.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr)

@deprecated@
idexpression id;
position p;
@@

(
  pci_dma_supported@p ( id, ...)
|
  pci_alloc_consistent@p ( id, ...)
)

@bad1@
idexpression id;
position deprecated.p;
@@
...when != &id->dev
   when != pci_get_drvdata ( id )
   when != pci_enable_device ( id )
(
  pci_dma_supported@p ( id, ...)
|
  pci_alloc_consistent@p ( id, ...)
)

@depends on !bad1@
idexpression id;
expression direction;
position deprecated.p;
@@

(
- pci_dma_supported@p ( id,
+ dma_supported ( &id->dev,
...
+ , GFP_ATOMIC
  )
|
- pci_alloc_consistent@p ( id,
+ dma_alloc_coherent ( &id->dev,
...
+ , GFP_ATOMIC
  )
)

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-04-17 15:32:07 -04:00
..
2015-04-17 15:32:07 -04:00
2013-11-14 18:21:25 -05:00
2011-03-09 19:54:27 +01:00
2009-03-27 12:46:34 +01:00
2009-05-17 19:12:25 +02:00
2015-03-27 11:59:22 -04:00
2010-01-19 11:30:09 -08:00
2014-03-17 15:57:28 -04:00
2013-09-16 18:19:04 -07:00
2013-01-03 15:57:03 -08:00
2015-04-17 15:32:07 -04:00