hvcs: Use dev_groups to manage hvcs device attributes
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 3 Feb 2023 15:57:58 +0000 (09:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:09:14 +0000 (13:09 +0100)
commit760aa5e81f33e0da82512c4288489739a6d1c556
tree105bab7e91642b76ba7799dd8f5f6bd220518a5b
parentef25e16ea9674b713a68c3bda821556ce9901254
hvcs: Use dev_groups to manage hvcs device attributes

Use the dev_groups functionality to manage the attribute groups
for hvcs devices. This simplifies the code and also eliminates
errors coming from kernfs when attempting to remove a console
device that is in use.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20230203155802.404324-2-brking@linux.vnet.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvcs.c