usb: musb: Fix broken use of static variable for multiple instances
authorTony Lindgren <tony@atomide.com>
Wed, 16 Nov 2016 19:21:22 +0000 (13:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Nov 2016 15:25:39 +0000 (16:25 +0100)
commitc723bd6ec2b50e7c8b3424d9cb8febd8ffa3da1f
treedea28900666d75706f1a5056410ef9086317c1b5
parenta5d906bb261cde5f881a949d3b0fbaa285dcc574
usb: musb: Fix broken use of static variable for multiple instances

We can't use static variable first for checking when musb is
initialized when we have multiple musb instances like on am335x.

Tested-by: Ladislav Michl <ladis@linux-mips.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h