diff options
author | Bryan Wu <bryan.wu@canonical.com> | 2010-12-07 21:41:25 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-17 20:25:26 -0500 |
commit | 1a6b59232bbaf612265e364c9e06ba1d15bbe7e0 (patch) | |
tree | b7ea21fc32b1ad8a23d4a7a39d41e3eb5d1bdb15 /arch/arm/mach-omap2/board-cm-t35.c | |
parent | 7c50152f0851e44ef7491546a29fddbbea47735b (diff) |
omap: kill all section mismatch warning for omap2plus_defconfig
This patch will kill following section mismatch warnings:
WARNING: vmlinux.o(.text+0x24a00): Section mismatch in reference from the function zoom_twl_gpio_setup() to the (unknown reference) .init.data:(unknown)
The function zoom_twl_gpio_setup() references
the (unknown reference) __initdata (unknown).
This is often because zoom_twl_gpio_setup lacks a __initdata
annotation or the annotation of (unknown) is wrong.
WARNING: vmlinux.o(.text+0x24bfc): Section mismatch in reference from the function cm_t35_twl_gpio_setup() to the (unknown reference) .init.data:(unknown)
The function cm_t35_twl_gpio_setup() references
the (unknown reference) __initdata (unknown).
This is often because cm_t35_twl_gpio_setup lacks a __initdata
annotation or the annotation of (unknown) is wrong.
WARNING: vmlinux.o(.data+0x1d3e0): Section mismatch in reference from the variable h4_config to the (unknown reference) .init.data:(unknown)
The variable h4_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x1dc08): Section mismatch in reference from the variable sdp2430_config to the (unknown reference) .init.data:(unknown)
The variable sdp2430_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x1e1d8): Section mismatch in reference from the variable apollon_config to the (unknown reference) .init.data:(unknown)
The variable apollon_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 78b67fb790bf..22c55d13a4e3 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -600,8 +600,8 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { | |||
600 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 600 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
601 | 601 | ||
602 | .phy_reset = true, | 602 | .phy_reset = true, |
603 | .reset_gpio_port[0] = -EINVAL, | 603 | .reset_gpio_port[0] = OMAP_MAX_GPIO_LINES + 6, |
604 | .reset_gpio_port[1] = -EINVAL, | 604 | .reset_gpio_port[1] = OMAP_MAX_GPIO_LINES + 7, |
605 | .reset_gpio_port[2] = -EINVAL | 605 | .reset_gpio_port[2] = -EINVAL |
606 | }; | 606 | }; |
607 | 607 | ||
@@ -630,12 +630,6 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, | |||
630 | cm_t35_vmmc1_supply.dev = mmc[0].dev; | 630 | cm_t35_vmmc1_supply.dev = mmc[0].dev; |
631 | cm_t35_vsim_supply.dev = mmc[0].dev; | 631 | cm_t35_vsim_supply.dev = mmc[0].dev; |
632 | 632 | ||
633 | /* setup USB with proper PHY reset GPIOs */ | ||
634 | ehci_pdata.reset_gpio_port[0] = gpio + 6; | ||
635 | ehci_pdata.reset_gpio_port[1] = gpio + 7; | ||
636 | |||
637 | usb_ehci_init(&ehci_pdata); | ||
638 | |||
639 | return 0; | 633 | return 0; |
640 | } | 634 | } |
641 | 635 | ||
@@ -804,6 +798,7 @@ static void __init cm_t35_init(void) | |||
804 | cm_t35_init_display(); | 798 | cm_t35_init_display(); |
805 | 799 | ||
806 | usb_musb_init(&musb_board_data); | 800 | usb_musb_init(&musb_board_data); |
801 | usb_ehci_init(&ehci_pdata); | ||
807 | } | 802 | } |
808 | 803 | ||
809 | MACHINE_START(CM_T35, "Compulab CM-T35") | 804 | MACHINE_START(CM_T35, "Compulab CM-T35") |