sunxi: usb: Protect phy-init and phy-power-on against multiple calls
authorHans de Goede <hdegoede@redhat.com>
Mon, 27 Apr 2015 14:57:54 +0000 (16:57 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 May 2015 14:51:55 +0000 (16:51 +0200)
commitfd01ae1384a67c354eb53fc8a4c1e0d519014ae8
treeab54002dae09ebac95f6ba20f0ea5db0766b8bd1
parente13afeef6f5d3c9c4fc130b21ee7c885f96d55f2
sunxi: usb: Protect phy-init and phy-power-on against multiple calls

Once we add support for the ohci controller the phy-init and phy-power-on
functions may be called twice (once by the ehci code and once by the ohci
code) protect them against this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/usb_phy.c