We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859a33f commit 8346e45Copy full SHA for 8346e45
drivers/usb/uhc/uhc_dwc2.c
@@ -171,8 +171,6 @@ struct uhc_dwc2_chan {
171
struct uhc_dwc2_data {
172
struct k_sem irq_sem;
173
struct k_thread thread;
174
- /* Mutex for port access */
175
- struct k_mutex mutex;
176
/* Main events the driver thread waits for */
177
struct k_event event;
178
struct uhc_dwc2_chan chan[UHC_DWC2_MAX_CHAN];
@@ -1699,7 +1697,6 @@ static int uhc_dwc2_preinit(const struct device *dev)
1699
1697
/* Initialize the private data structure */
1700
1698
memset(priv, 0, sizeof(struct uhc_dwc2_data));
1701
k_mutex_init(&data->mutex);
1702
- k_mutex_init(&priv->mutex);
1703
k_event_init(&priv->event);
1704
1705
/* TODO: Overwrite the DWC2 register values with the devicetree values? */
0 commit comments