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>
This commit is contained in:
parent
b88ccf6f97
commit
0dfeefbc93
@ -115,7 +115,7 @@ static const struct hc_driver ehci_atmel_hc_driver = {
|
|||||||
.clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
|
.clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init ehci_atmel_drv_probe(struct platform_device *pdev)
|
static int __devinit ehci_atmel_drv_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct usb_hcd *hcd;
|
struct usb_hcd *hcd;
|
||||||
const struct hc_driver *driver = &ehci_atmel_hc_driver;
|
const struct hc_driver *driver = &ehci_atmel_hc_driver;
|
||||||
@ -207,7 +207,7 @@ fail_create_hcd:
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __exit ehci_atmel_drv_remove(struct platform_device *pdev)
|
static int __devexit ehci_atmel_drv_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct usb_hcd *hcd = platform_get_drvdata(pdev);
|
struct usb_hcd *hcd = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ static int __exit ehci_atmel_drv_remove(struct platform_device *pdev)
|
|||||||
|
|
||||||
static struct platform_driver ehci_atmel_driver = {
|
static struct platform_driver ehci_atmel_driver = {
|
||||||
.probe = ehci_atmel_drv_probe,
|
.probe = ehci_atmel_drv_probe,
|
||||||
.remove = __exit_p(ehci_atmel_drv_remove),
|
.remove = __devexit_p(ehci_atmel_drv_remove),
|
||||||
.shutdown = usb_hcd_platform_shutdown,
|
.shutdown = usb_hcd_platform_shutdown,
|
||||||
.driver.name = "atmel-ehci",
|
.driver.name = "atmel-ehci",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user