usb: musb: remove hand-crafted id handling
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 31 Oct 2012 15:12:43 +0000 (16:12 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Nov 2012 10:32:23 +0000 (12:32 +0200)
commit2f7711642559851c187d09795a3eb51c2bde36ec
treecc0663e2d53d0f4d6a5355c51fd5e30c843cafcd
parentb18d26f6ad8f00ea5f7c6a12ea52627ca3c3c6e2
usb: musb: remove hand-crafted id handling

This replaced the handcrafted id handling by the PLATFORM_DEVID_AUTO
value which should do the same thing.

This patch probably also fixes ux500 because I did not find the "musbid"
variable to remove. And we close a tiny-unlikely race window becuase the
old code gave the id back before device was destroyed in the remove
case.

[ balbi@ti.com : fixed up two failed hunks when applying patch ]

Cc: B, Ravi <ravibabu@ti.com>
Cc: Santhapuri, Damodar <damodar.santhapuri@ti.com>
Cc: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Cc: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/am35x.c
drivers/usb/musb/blackfin.c
drivers/usb/musb/da8xx.c
drivers/usb/musb/davinci.c
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_dsps.c
drivers/usb/musb/omap2430.c
drivers/usb/musb/tusb6010.c
drivers/usb/musb/ux500.c