diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-03-08 18:20:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-19 07:24:22 -0700 |
commit | 83ba11d93434e6f0cc2e060336b0b19a3f687fa3 (patch) | |
tree | f218d491b3fc0d4a6d0f167a6652e45bf80634ab /drivers/usb/gadget | |
parent | 9c67d28e4e7683b4f667fa4c7b6f9aee92b44b5c (diff) | |
download | linux-3.10-83ba11d93434e6f0cc2e060336b0b19a3f687fa3.tar.gz linux-3.10-83ba11d93434e6f0cc2e060336b0b19a3f687fa3.tar.bz2 linux-3.10-83ba11d93434e6f0cc2e060336b0b19a3f687fa3.zip |
USB: gadget: add gadget controller number for s3c-hsotg driver
This prevents some drivers from complaining that no bcdDevice id was set.
Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index 1edbc12fff1..e511fec9f26 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h @@ -136,6 +136,12 @@ #define gadget_is_r8a66597(g) 0 #endif +#ifdef CONFIG_USB_S3C_HSOTG +#define gadget_is_s3c_hsotg(g) (!strcmp("s3c-hsotg", (g)->name)) +#else +#define gadget_is_s3c_hsotg(g) 0 +#endif + /** * usb_gadget_controller_number - support bcdDevice id convention @@ -192,6 +198,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) return 0x24; else if (gadget_is_r8a66597(gadget)) return 0x25; + else if (gadget_is_s3c_hsotg(gadget)) + return 0x26; return -ENOENT; } |