diff options
author | Christoph Hellwig <hch@lst.de> | 2019-02-11 14:20:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 12:09:24 -0500 |
commit | 8d4c28fbc284bf2dee08afff146def47cafbc227 (patch) | |
tree | c47ea54dbbb93f0046da2476e9e6d5cfc91f6d1d /drivers/ide/sc1200.c | |
parent | moxart_ether: pass struct device to DMA API functions (diff) | |
download | linux-dev-8d4c28fbc284bf2dee08afff146def47cafbc227.tar.xz linux-dev-8d4c28fbc284bf2dee08afff146def47cafbc227.zip |
meth: pass struct device to DMA API functions
The DMA API generally relies on a struct device to work properly, and
only barely works without one for legacy reasons. Pass the easily
available struct device from the platform_device to remedy this.
Also use GFP_KERNEL instead of GFP_ATOMIC as the gfp_t for the memory
allocation, as we aren't in interrupt context or under a lock.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/sc1200.c')
0 files changed, 0 insertions, 0 deletions