mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
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>
This commit is contained in:
parent
64203c7b0f
commit
bbf4c01efc
3 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue