Skip to contentSkip to conversation

usb : musb:Using omap_device_build for musb device registration

PATCH New Hema HK 1 participant 1 message Jul 8, 2010

Subsystems (6)
lore
Share & tools
lore

Hema HK

author
#0 lore raw

PATCH v2 4/4 usb : musb:Using omap_device_build for musb device registration

From: Hema HK <[email protected]>

Using omap_device_build api instead of platform_device_register for musb device registration.The device specific resources defined in centralized database will be used. So removed the resource definitions from the musb platform file.

Cc Felipe Balbi <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Kevin Hilman <[email protected]>

---
Based off pm-wip/hwmods-omap4.

[Review comments incorporated]

 arch/arm/mach-omap2/clock44xx_data.c       |    2 
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c |    2 
 arch/arm/mach-omap2/usb-musb.c             |   97 +++++++++++++++--------------
 3 files changed, 53 insertions(+), 48 deletions(-)
arch/arm/mach-omap2/clock44xx_data.c +1 -1
Index: linux-omap-pm/arch/arm/mach-omap2/clock44xx_data.c
===================================================================
@@ -2296,7 +2296,7 @@ static struct clk usb_host_fs_fck = {
 };
 
 static struct clk usb_otg_ick = {
-	.name		= "usb_otg_ick",
+	.name		= "usb_otg_hs_ick",
 	.ops		= &clkops_omap2_dflt,
 	.enable_reg	= OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
 	.enable_bit	= OMAP4430_MODULEMODE_HWCTRL,
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -1
Index: linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
===================================================================
@@ -4884,7 +4884,7 @@ static __initdata struct omap_hwmod *oma
 	/* usb_host_hs class */
 /*	&omap44xx_usb_host_hs_hwmod, */
 	/* usb_otg_hs class */
-/*	&omap44xx_usb_otg_hs_hwmod, */
+	&omap44xx_usb_otg_hs_hwmod,
 	/* usb_tll_hs class */
 /*	&omap44xx_usb_tll_hs_hwmod, */
 	/* wd_timer class */
arch/arm/mach-omap2/usb-musb.c +51 -43

112 lines not on this page · raw message