virt: vbox: convert to use dev_groups
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 1 Sep 2022 14:46:10 +0000 (22:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 08:19:04 +0000 (10:19 +0200)
commitd4d2c58bdb9190baa1d5e1719c1339fcb2c17642
tree7c21ea5cd1b6f1950803e806f3d0fa8e8722f3ac
parentc5144241d28cfbca11d75ad334bbacabad0becaf
virt: vbox: convert to use dev_groups

The driver core supports the ability to handle the creation and removal
of device-specific sysfs files in a race-free manner. Moreover, it can
guarantee the success of creation. Therefore, it should be better to
convert to use dev_groups.

Fixes: 0ba002bc4393 ("virt: Add vboxguest driver for Virtual Box Guest integration")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220901144610.3550300-1-jiasheng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/vboxguest/vboxguest_linux.c