Quentin Lambert
412b979ccc
ALSA: 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: Takashi Iwai <tiwai@suse.de>
2015-04-16 12:19:52 +02:00
..
2014-10-14 09:18:02 +02:00
2015-04-16 12:19:52 +02:00
2014-02-26 16:45:27 +01:00
2008-01-31 17:29:48 +01:00
2015-02-12 14:15:54 +01:00
2015-01-11 11:26:48 +01:00
2015-01-02 16:32:45 +01:00
2015-01-02 16:32:45 +01:00
2015-04-11 18:35:06 +02:00
2014-02-26 16:45:27 +01:00
2015-01-02 16:32:45 +01:00
2015-04-10 13:02:23 +02:00
2014-03-05 12:15:56 +01:00
2014-02-26 16:45:27 +01:00
2009-05-29 11:49:42 +02:00
2014-02-26 16:45:27 +01:00
2015-01-04 15:12:08 +01:00
2011-03-31 11:26:23 -03:00
2007-02-09 09:02:17 +01:00
2012-12-07 07:20:55 +01:00
2006-06-22 21:32:37 +02:00
2014-02-26 16:45:27 +01:00