mirror of https://gitee.com/openkylin/linux.git
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:
parent
8d9627b05b
commit
af615abd15
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue