usb: gadget: s3c2410_udc: use platform ids instead
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 29 Jun 2011 13:41:56 +0000 (16:41 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:27:08 +0000 (14:27 -0700)
commit513385a3cf97e9fb7e982afffeb013a12a7ccbd2
tree7f1c3211ee4dcb6010c19e82b7a4a1b5c0e46a2d
parent86081d7be34e0f80dc5c46391ec927fc4f350462
usb: gadget: s3c2410_udc: use platform ids instead

This also fixes the error path: If the second device fails to register
we never remove the first one.
This is compile-tested only. I don't see any difference between those
two. Maybe we should just use one name instead?

Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c2410_udc.c