at76c50x-usb: fix endpoint debug message
Make sure to use the current alternate setting, which may not be the same as the first alternate setting, also when printing the number of endpoints at probe. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -2236,7 +2236,7 @@ static int at76_alloc_urbs(struct at76_priv *priv,
|
||||
at76_dbg(DBG_PROC_ENTRY, "%s: ENTER", __func__);
|
||||
|
||||
at76_dbg(DBG_URB, "%s: NumEndpoints %d ", __func__,
|
||||
interface->altsetting[0].desc.bNumEndpoints);
|
||||
interface->cur_altsetting->desc.bNumEndpoints);
|
||||
|
||||
ep_in = NULL;
|
||||
ep_out = NULL;
|
||||
|
Reference in New Issue
Block a user