linux/drivers/memstick/host
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
..
jmb38x_ms.c memstick: remove deprecated use of pci api 2015-06-30 19:44:57 -07:00
Kconfig memstick: Add realtek USB memstick host driver 2014-04-28 11:02:46 +01:00
Makefile memstick: Add realtek USB memstick host driver 2014-04-28 11:02:46 +01:00
r592.c memstick: remove deprecated use of pci api 2015-06-30 19:44:57 -07:00
r592.h Fix common misspellings 2011-03-31 11:26:23 -03:00
rtsx_pci_ms.c memstick: host: drop owner assignment from platform_drivers 2014-10-20 16:20:53 +02:00
rtsx_usb_ms.c memstick: host: drop owner assignment from platform_drivers 2014-10-20 16:20:53 +02:00
tifm_ms.c memstick: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:19 +08:00