]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev/sh7760fb: Alloc DMA memory from hardware device
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 13 Jun 2023 11:07:02 +0000 (13:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:03 +0000 (19:51 +0100)
commit038e1d56b252e5638055dfacd39c9987e95a8533
tree77437a27b236cfa45898c93b53bab98fe91009f1
parent7f5355199d21cff41d405ebc5d4e3cf7793dc52a
fbdev/sh7760fb: Alloc DMA memory from hardware device

[ Upstream commit 8404e56f4bc1d1a65bfc98450ba3dae5e653dda1 ]

Pass the hardware device to the DMA helpers dma_alloc_coherent() and
dma_free_coherent(). The fbdev device that is currently being used is
a software device and does not provide DMA memory. Also update the
related dev_*() output statements similarly.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-28-tzimmermann@suse.de
Stable-dep-of: f89d17ae2ac4 ("fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/sh7760fb.c