]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita99a44a42b907981e6f095882f34917f7b0c872d
treef8214a8ca20d8487c1e304ab56b6a528960cb0df
parent27c07d4238e87190bb2de25ed0a1b25f780f89da
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