s390/iucv: Provide iucv_alloc_device() / iucv_release_device()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 6 May 2024 19:44:49 +0000 (21:44 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 14 May 2024 18:21:03 +0000 (20:21 +0200)
commit4452e8ef8c364113495f414d7e6846d74d7eff81
treef1acd2784827dc06dfb3290c229277a8526c2c10
parent1084562ec858d96c02d3a47d4afb088922f5a2ca
s390/iucv: Provide iucv_alloc_device() / iucv_release_device()

Provide iucv_alloc_device() and iucv_release_device() helper functions,
which can be used to deduplicate more or less identical IUCV device
allocation and release code in four different drivers.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://lore.kernel.org/r/20240506194454.1160315-2-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
include/net/iucv/iucv.h
net/iucv/iucv.c