usb: musb: kill global and static for multi instance
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 31 Aug 2012 11:09:50 +0000 (11:09 +0000)
committerFelipe Balbi <balbi@ti.com>
Tue, 11 Sep 2012 14:34:45 +0000 (17:34 +0300)
commit8d2421e68cb8a159963641eab72f8f8ba1c7f7b0
treef8214a8ca20d8487c1e304ab56b6a528960cb0df
parent65b3d52d02a558fbfe08e43688e15390c5ab3067
usb: musb: kill global and static for multi instance

Moved global variable "musb_debugfs_root" and static variable
"old_state" to 'struct musb' to help support multi instance of
musb controller as present on AM335x platform.

Also removed the global variable "orig_dma_mask" and filled the
dev->dma_mask with parent device's dma_mask.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Santhapuri, Damodar <damodar.santhapuri@ti.com>
Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_debugfs.c