usb: gadget: ci13xxx_pci: guard against devices without driver_data
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 11 May 2012 14:25:40 +0000 (17:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2012 23:35:38 +0000 (16:35 -0700)
commit1989b5ceb5aa57862ed770368ae90bf44fd13198
tree80eeb42239d9d5520d2df7346adc8777e156732e
parent6286d85e8efdb59252d1ceb99a56fa6b0b11526c
usb: gadget: ci13xxx_pci: guard against devices without driver_data

Don't try to initialize devices that don't have driver_data assigned
to their pci ids.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/ci13xxx_pci.c