From: Maurus Cuelenaere Date: Tue, 25 May 2010 04:36:49 +0000 (+0100) Subject: USB: s3c_hsotg: define USB_GADGET_DUALSPEED in Kconfig X-Git-Tag: MMI-PSA29.97-13-9~23350^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0287e43dda1a425da662f879dd27352021b0ca63;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git USB: s3c_hsotg: define USB_GADGET_DUALSPEED in Kconfig The s3c_hsotg driver sets usb_gadget->is_dualspeed to 1, yet it doesn't define USB_GADGET_DUALSPEED in Kconfig. This triggers a NULL pointer dereference in the composite driver (which is fixed in another patch). Signed-off-by: Maurus Cuelenaere Signed-off-by: Ben Dooks Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 649c0c5f7158..591ae9fde199 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -295,6 +295,7 @@ config USB_GADGET_S3C_HSOTG boolean "S3C HS/OtG USB Device controller" depends on S3C_DEV_USB_HSOTG select USB_GADGET_S3C_HSOTG_PIO + select USB_GADGET_DUALSPEED help The Samsung S3C64XX USB2.0 high-speed gadget controller integrated into the S3C64XX series SoC.