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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:03:02 +0000 (12:03 -0800)
commit21d91b819a1a3a0ff14e3acf31362c1ac3e5c73a
treeb40caf2e1cecba72d1bc875df41df8ce7303b278
parent87e20a418863dff14cd7322cde98cf7703fd23f5
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