Skip to content
Snippets Groups Projects
user avatar
Christoph Hellwig authored
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_USER as the gfp_t for the memory
allocation, as we should treat this allocation as a normal kernel one.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
6a8125c3
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..