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>
Tue, 14 Jun 2011 16:09:06 +0000 (09:09 -0700)
commit0a4c12d4fa0fdec17cd9347ea9f70453cfaffe14
tree1ee9384c416432c0ba24098c3e63095b8df81a86
parentf6205641334bf29e59de6cbe62de618d7ee339e6
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