summaryrefslogtreecommitdiff
path: root/drivers/usb/usbip/vudc_main.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-05 22:36:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-06 10:40:47 +0300
commit91148dbad80bb6024389287be4aefcbf20b2d0e4 (patch)
tree270e233f716bcc9d365a85932ae4f019cfb51322 /drivers/usb/usbip/vudc_main.c
parentc5d1653783cae7b53e2dc1a41cdc497fce83e4db (diff)
downloadlinux-91148dbad80bb6024389287be4aefcbf20b2d0e4.tar.xz
USB: usbip: convert platform driver to use dev_groups
Platform drivers now have the option to have the platform core create and remove any needed sysfs attribute files. So take advantage of that and do not register "by hand" any sysfs files. Cc: Valentina Manea <valentina.manea.m@gmail.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20190805193636.25560-5-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/usbip/vudc_main.c')
-rw-r--r--drivers/usb/usbip/vudc_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/usbip/vudc_main.c b/drivers/usb/usbip/vudc_main.c
index 390733e6937e..678faa82598c 100644
--- a/drivers/usb/usbip/vudc_main.c
+++ b/drivers/usb/usbip/vudc_main.c
@@ -22,6 +22,7 @@ static struct platform_driver vudc_driver = {
.remove = vudc_remove,
.driver = {
.name = GADGET_NAME,
+ .dev_groups = vudc_groups,
},
};