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
..
2013-01-03 15:57:03 -08:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2014-10-15 14:27:38 -04:00
2014-10-20 16:20:38 +02:00
2013-11-26 11:09:07 +01:00
2013-01-03 15:57:03 -08:00
2012-10-06 03:04:41 +09:00
2015-04-17 15:32:07 -04:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-11-14 18:21:25 -05:00
2013-01-03 15:57:03 -08:00
2013-07-10 12:09:10 -07:00
2012-10-06 03:04:41 +09:00
2009-06-15 18:52:58 +02:00
2014-10-20 16:20:38 +02:00
2013-01-03 15:57:03 -08:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00
2014-10-20 16:20:38 +02:00
2012-01-13 09:32:20 +10:30
2013-12-07 01:05:50 +01:00
2011-10-31 19:31:37 -04:00
2011-04-21 19:43:59 +02:00
2014-01-28 23:35:09 -08:00
2013-07-03 16:07:41 -07:00
2011-03-09 19:54:27 +01:00
2012-06-12 15:51:41 -07:00
2010-03-30 22:02:32 +09:00
2010-10-05 15:01:10 +02:00
2013-04-09 14:13:32 -04:00
2014-10-04 10:55:32 -06:00
2011-10-31 19:31:37 -04:00
2011-10-31 19:31:37 -04:00
2011-10-31 19:31:37 -04:00
2012-01-14 15:07:24 -08:00
2013-04-09 14:13:32 -04:00
2014-12-12 15:26:31 -05:00
2013-07-03 16:07:41 -07:00
2009-05-17 19:12:25 +02:00
2011-10-31 19:31:37 -04:00
2011-04-05 23:52:49 +02:00
2013-09-05 15:21:29 -04:00
2010-01-19 01:41:57 -08:00
2011-10-31 19:31:37 -04:00
2015-03-27 11:59:22 -04:00
2014-08-28 10:03:46 -06:00
2013-01-03 15:57:03 -08:00
2014-01-28 23:35:09 -08:00
2012-08-21 14:54:42 -07:00
2015-03-18 22:39:17 +01:00
2015-03-27 11:59:22 -04:00
2013-04-09 14:13:32 -04:00
2011-05-16 14:24:46 -07:00
2013-10-16 18:40:57 -07:00
2015-03-18 23:25:57 -04:00
2013-07-10 12:09:10 -07:00
2010-01-19 11:30:09 -08:00
2011-10-31 19:31:37 -04:00
2014-12-12 15:26:31 -05:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2014-03-17 15:57:28 -04:00
2011-10-31 19:31:37 -04:00
2013-09-16 18:19:04 -07:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2014-10-20 16:20:38 +02:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2015-04-17 15:32:07 -04:00
2011-10-31 19:31:37 -04:00
2012-10-06 03:04:41 +09:00
2009-06-15 22:13:44 +02:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2015-04-17 15:32:07 -04:00
2015-04-17 15:32:07 -04:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2013-01-03 15:57:03 -08:00
2014-10-20 16:20:38 +02:00
2014-10-20 16:20:38 +02:00
2012-10-06 03:04:41 +09:00
2013-01-03 15:57:03 -08:00