Quentin Lambert
43abdbcece
memstick: 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>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-30 19:44:57 -07:00
..
2015-06-29 10:34:42 -07:00
2015-06-26 11:08:27 -07:00
2015-06-30 19:44:56 -07:00
2015-06-29 10:34:42 -07:00
2015-06-18 21:00:06 +03:00
2015-06-26 11:54:29 -07:00
2015-06-27 13:26:03 -07:00
2015-06-27 12:44:34 -07:00
2015-06-26 12:20:00 -07:00
2015-06-27 12:44:34 -07:00
2015-06-26 12:20:00 -07:00
2015-06-23 14:18:07 -07:00
2015-06-29 09:44:45 -07:00
2015-06-26 15:07:37 -07:00
2015-06-12 17:01:42 -07:00
2015-06-27 12:44:34 -07:00
2015-06-24 19:21:02 -07:00
2015-06-26 13:18:51 -07:00
2015-06-22 16:23:43 +02:00
2015-06-23 02:40:03 +02:00
2015-06-12 16:58:33 -07:00
2015-06-26 14:51:15 -07:00
2015-06-26 14:51:15 -07:00
2015-06-25 14:29:53 -07:00
2015-06-24 16:49:49 -07:00
2015-06-26 15:53:22 -07:00
2015-06-26 13:18:51 -07:00
2015-06-27 12:44:34 -07:00
2015-06-24 16:49:49 -07:00
2015-06-26 11:54:29 -07:00
2015-06-22 17:59:09 -07:00
2015-06-15 16:42:37 +10:00
2015-06-13 16:20:39 +05:30
2015-06-29 11:10:56 -07:00
2015-06-26 15:46:08 -07:00
2015-06-26 11:54:29 -07:00
2015-06-30 19:44:57 -07:00
2015-06-13 08:44:14 -07:00
2015-06-25 18:55:33 -07:00
2015-06-26 14:51:15 -07:00
2015-06-25 15:22:36 -07:00
2015-06-25 16:00:17 -07:00
2015-06-25 17:00:39 -07:00
2015-06-26 14:51:15 -07:00
2015-06-23 13:41:24 -07:00
2015-06-26 11:23:38 -04:00
2015-06-26 13:18:51 -07:00
2015-06-12 16:58:33 -07:00
2015-06-25 17:00:38 -07:00
2015-06-26 14:51:15 -07:00
2015-06-27 12:44:34 -07:00
2015-06-26 11:54:29 -07:00
2015-06-26 15:46:08 -07:00
2015-06-19 01:18:43 +02:00
2015-06-26 17:44:09 -07:00
2015-06-23 13:32:38 -07:00
2015-06-23 14:08:54 -07:00
2015-06-25 17:15:18 -07:00
2015-06-27 12:44:34 -07:00
2015-06-25 15:12:50 -07:00
2015-06-24 16:49:49 -07:00
2015-06-26 11:54:29 -07:00
2015-06-18 00:19:56 +01:00
2015-06-26 15:46:08 -07:00
2015-06-24 16:49:49 -07:00
2015-06-25 17:51:55 -07:00
2015-06-27 12:44:34 -07:00
2015-06-12 17:01:43 -07:00
2015-06-27 12:44:34 -07:00
2015-06-28 12:32:13 -07:00
2015-06-24 16:49:49 -07:00
2015-06-26 15:53:22 -07:00
2015-06-23 13:41:24 -07:00
2015-06-12 17:31:05 -07:00
2015-06-12 16:58:33 -07:00
2015-06-26 11:34:35 -07:00
2015-06-24 17:49:45 -07:00
2015-06-24 21:24:10 -04:00
2015-06-29 10:34:42 -07:00