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>
This commit is contained in:
Greg Kroah-Hartman
2019-08-05 21:36:35 +02:00
parent c5d1653783
commit 91148dbad8
4 changed files with 8 additions and 11 deletions

View File

@@ -115,7 +115,7 @@ struct vudc_device {
struct list_head dev_entry;
};
extern const struct attribute_group vudc_attr_group;
extern const struct attribute_group *vudc_groups[];
/* visible everywhere */