]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/hmcdrv: Remove commented out code
authorJori Koolstra <jkoolstra@xs4all.nl>
Sun, 8 Mar 2026 10:32:51 +0000 (11:32 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 2 Apr 2026 10:06:29 +0000 (12:06 +0200)
commit052abf9ac00b69da50342698679a67c3c0901f7f
treebc76b8e49ff3958f0b75c8f285b57e8760f4353f
parent2a0a1db5081df02d6753deb1826fd3932a1ab168
s390/hmcdrv: Remove commented out code

The create_class() api is retiring in favor of class_register() (see:
https://lore.kernel.org/all/2023040244-duffel-pushpin-f738@gregkh/).
The HMCDRV_DEV_CLASS define is hiding a use of create_class(), but it is
permanently disabled as it is commented out. To avoid supporting code
that is disabled, the suggestion is to remove all code hiding be behind
any #ifdef HMCDRV_DEV_CLASS.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20260308103255.757461-1-jkoolstra@xs4all.nl
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/char/hmcdrv_dev.c