diff options
author | Ajay Kumar Gupta <ajay.gupta@ti.com> | 2010-06-10 11:20:47 +0530 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-06-30 21:37:37 +0200 |
commit | bbf4c01efc699f777687e4e5fcc3631749ee6813 (patch) | |
tree | 9a7ca3922ccc2de5ba2d7bc7ae7fba970a7278e4 /drivers/usb/musb | |
parent | 64203c7b0f4568e5ece9fc1b25f763bed88d10b8 (diff) | |
download | u-boot-bbf4c01efc699f777687e4e5fcc3631749ee6813.tar.gz u-boot-bbf4c01efc699f777687e4e5fcc3631749ee6813.tar.xz u-boot-bbf4c01efc699f777687e4e5fcc3631749ee6813.zip |
musb: Use name based initialization for musb_config
Changed musb_config initialization for omap3.c, davinci.c
and da8xx.c using name of structure fields. This would cause
the uninitialized field to be null by default and thus would
help in avoiding to init some flags required to be set only
for a few selected platforms.
CC: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/da8xx.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/davinci.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/omap3.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 40bfe440d8..617d88e1a7 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c @@ -27,9 +27,9 @@ /* MUSB platform configuration */ struct musb_config musb_cfg = { - (struct musb_regs *)DA8XX_USB_OTG_CORE_BASE, - DA8XX_USB_OTG_TIMEOUT, - 0 + .regs = (struct musb_regs *)DA8XX_USB_OTG_CORE_BASE, + .timeout = DA8XX_USB_OTG_TIMEOUT, + .musb_speed = 0, }; /* diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index 8fbadc962f..f56f2df532 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c @@ -28,9 +28,9 @@ /* MUSB platform configuration */ struct musb_config musb_cfg = { - (struct musb_regs *)MENTOR_USB0_BASE, - DAVINCI_USB_TIMEOUT, - 0 + .regs = (struct musb_regs *)MENTOR_USB0_BASE, + .timeout = DAVINCI_USB_TIMEOUT, + .musb_speed = 0, }; /* MUSB module register overlay */ diff --git a/drivers/usb/musb/omap3.c b/drivers/usb/musb/omap3.c index 3bfd0a085f..785629cb7b 100644 --- a/drivers/usb/musb/omap3.c +++ b/drivers/usb/musb/omap3.c @@ -36,9 +36,9 @@ static int platform_needs_initialization = 1; struct musb_config musb_cfg = { - (struct musb_regs *)MENTOR_USB0_BASE, - OMAP3_USB_TIMEOUT, - 0 + .regs = (struct musb_regs *)MENTOR_USB0_BASE, + .timeout = OMAP3_USB_TIMEOUT, + .musb_speed = 0, }; /* |