hvcs: Use driver groups to manage driver attributes
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 3 Feb 2023 15:57:59 +0000 (09:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:09:14 +0000 (13:09 +0100)
commit503a90dd619d52dcac2cc68bd742aa914c7cd47a
tree84abd0105e54d854c76e4065eb24565864c233cc
parent760aa5e81f33e0da82512c4288489739a6d1c556
hvcs: Use driver groups to manage driver attributes

Rather than manually creating attributes for the hvcs driver,
let the driver core do this for us. This also fixes some hotplug
remove issues and ensures that cleanup of these attributes
is done in the right order.

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