]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/af_iucv: clean up a try_then_request_module()
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 9 Aug 2021 08:30:47 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 07:42:21 +0000 (08:42 +0100)
commite800ef36d1fa93558ac29ab7a9f325039957d64b
treef5c29c0485dddf841f1c8d03b2f041dd054f9649
parent9f56f38331171c9a19754004f0664686d67ee48d
net/af_iucv: clean up a try_then_request_module()

[ Upstream commit 4eb9eda6ba64114d98827e2870e024d5ab7cd35b ]

Use IS_ENABLED(CONFIG_IUCV) to determine whether the iucv_if symbol
is available, and let depmod deal with the module dependency.

This was introduced back with commit 6fcd61f7bf5d ("af_iucv: use
loadable iucv interface"). And to avoid sprinkling IS_ENABLED() over
all the code, we're keeping the indirection through pr_iucv->...().

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/iucv/af_iucv.c