diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2011-03-10 04:06:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-11 17:18:52 -0500 |
commit | 0dfeefbc93e38c3a9bd6d4e579cc5a76d3f13dc2 (patch) | |
tree | fbe357913fd0e0757088263602f38a3478cdcf5f | |
parent | b88ccf6f97ceb3f34cecbb513edc58815707187d (diff) |
ehci-atmel: fix section mismatch warning
Fix the following section mismatch warning:
WARNING: drivers/usb/built-in.o(.data+0x74c): Section mismatch in reference from the variable ehci_atmel_driver to the function .init.text:ehci_atmel_drv_probe()
The variable ehci_atmel_driver references
the function __init ehci_atmel_drv_probe()
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: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/host/ehci-atmel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index d6a69d514a84..b2ed55cb811d 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c | |||
@@ -115,7 +115,7 @@ static const struct hc_driver ehci_atmel_hc_driver = { | |||
115 | .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, | 115 | .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static int __init ehci_atmel_drv_probe(struct platform_device *pdev) | 118 | static int __devinit ehci_atmel_drv_probe(struct platform_device *pdev) |
119 | { | 119 | { |
120 | struct usb_hcd *hcd; | 120 | struct usb_hcd *hcd; |
121 | const struct hc_driver *driver = &ehci_atmel_hc_driver; | 121 | const struct hc_driver *driver = &ehci_atmel_hc_driver; |
@@ -207,7 +207,7 @@ fail_create_hcd: | |||
207 | return retval; | 207 | return retval; |
208 | } | 208 | } |
209 | 209 | ||
210 | static int __exit ehci_atmel_drv_remove(struct platform_device *pdev) | 210 | static int __devexit ehci_atmel_drv_remove(struct platform_device *pdev) |
211 | { | 211 | { |
212 | struct usb_hcd *hcd = platform_get_drvdata(pdev); | 212 | struct usb_hcd *hcd = platform_get_drvdata(pdev); |
213 | 213 | ||
@@ -227,7 +227,7 @@ static int __exit ehci_atmel_drv_remove(struct platform_device *pdev) | |||
227 | 227 | ||
228 | static struct platform_driver ehci_atmel_driver = { | 228 | static struct platform_driver ehci_atmel_driver = { |
229 | .probe = ehci_atmel_drv_probe, | 229 | .probe = ehci_atmel_drv_probe, |
230 | .remove = __exit_p(ehci_atmel_drv_remove), | 230 | .remove = __devexit_p(ehci_atmel_drv_remove), |
231 | .shutdown = usb_hcd_platform_shutdown, | 231 | .shutdown = usb_hcd_platform_shutdown, |
232 | .driver.name = "atmel-ehci", | 232 | .driver.name = "atmel-ehci", |
233 | }; | 233 | }; |