]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: hyperv_fb: Simplify hvfb_putmem
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Sat, 1 Mar 2025 16:16:30 +0000 (08:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:11 +0000 (12:54 -0700)
commitae833890703c23ac70ce9c946a134e6518646bbb
treee8ce97cc940cc1b342e106dd76ab8e4615108b6b
parentcfffe46a994ac6d5de3b119917680ea1e9a96125
fbdev: hyperv_fb: Simplify hvfb_putmem

[ Upstream commit f5e728a50bb17336a20803dde488515b833ecd1d ]

The device object required in 'hvfb_release_phymem' function
for 'dma_free_coherent' can also be obtained from the 'info'
pointer, making 'hdev' parameter in 'hvfb_putmem' redundant.
Remove the unnecessary 'hdev' argument from 'hvfb_putmem'.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1740845791-19977-2-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1740845791-19977-2-git-send-email-ssengar@linux.microsoft.com>
Stable-dep-of: ea2f45ab0e53 ("fbdev: hyperv_fb: Allow graceful removal of framebuffer")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/hyperv_fb.c