USB: gadget: android: check for null _android_dev in android_register_function()
authorMike Lockwood <lockwood@android.com>
Wed, 17 Mar 2010 19:42:29 +0000 (15:42 -0400)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:31 +0000 (17:49 -0700)
commit437ae6a946a82f87f1f932e115e4e8cb58dcae5b
tree2a3845fd70e2e0ff5f90dfde610c8f89db89f44d
parentfcf1d6043f34785491cc3f488c6b42e823c7d24b
USB: gadget: android: check for null _android_dev in android_register_function()

This fixes a load ordering issue that occurred if a function driver loads before
the android gadget driver is initialized.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/android.c