remove irq protect when allocates devnum

This commit is contained in:
sakumisu
2022-10-01 16:15:25 +08:00
parent 972c935ead
commit 212a727cbd
5 changed files with 2 additions and 107 deletions

View File

@@ -34,14 +34,6 @@ extern int usbh_enumerate(struct usbh_hubport *hport);
static const char *speed_table[] = { "error-speed", "low-speed", "full-speed", "high-speed", "wireless-speed", "super-speed", "superplus-speed" };
/****************************************************************************
* Name: usbh_hub_devno_alloc
*
* Description:
* Allocate a unique /dev/hub[n] minor number in the range 2-31.
*
****************************************************************************/
static int usbh_hub_devno_alloc(void)
{
int devno;
@@ -57,14 +49,6 @@ static int usbh_hub_devno_alloc(void)
return -EMFILE;
}
/****************************************************************************
* Name: usbh_hub_devno_free
*
* Description:
* Free a /dev/hub[n] minor number so that it can be used.
*
****************************************************************************/
static void usbh_hub_devno_free(struct usbh_hub *hub)
{
int devno = hub->index;