aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/roles/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/roles/Makefile')
-rw-r--r--drivers/usb/roles/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/roles/Makefile b/drivers/usb/roles/Makefile
index e44b179ba275..c02873206fc1 100644
--- a/drivers/usb/roles/Makefile
+++ b/drivers/usb/roles/Makefile
@@ -1 +1,3 @@
-obj-$(CONFIG_USB_ROLES_INTEL_XHCI) += intel-xhci-usb-role-switch.o
+obj-$(CONFIG_USB_ROLE_SWITCH) += roles.o
+roles-y := class.o
+obj-$(CONFIG_USB_ROLES_INTEL_XHCI) += intel-xhci-usb-role-switch.o