-
由 Christoph Hellwig 提交于
stable inclusion from stable-v5.10.128 commit 069fff50d4008970642a5380c3022e76dd8e7336 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5YM2H Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=069fff50d4008970642a5380c3022e76dd8e7336 -------------------------------- commit bf22c9ec upstream. drm_fb_helper_modinit has a lot of boilerplate for what is not very simple functionality. Just open code it in the only caller using IS_ENABLED and IS_MODULE, and skip the find_module check as a request_module is harmless if the module is already loaded (and not other caller has this find_module check either). Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: NChristoph Hellwig <hch@lst.de> Signed-off-by: NJessica Yu <jeyu@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
90cf28c0