aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-09-16 04:16:31 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-09-16 04:16:31 -0400
commit0238a0d8c3846f5c1f9db0dabe504481751e58e8 (patch)
treed664f22d9ef3e398bef171fbac0783c160811747 /drivers/usb/host
parent25ab998e2eff46d2e6ede80c9fc02a349fa005a3 (diff)
usb: Fix up r8a66597-hcd section mismatches.
The _remove() routine is flagged __init_or_module, despite only being used in a __devexit context. As the rest of the driver is already balanced out with __devinit, switch to __devexit and __devexit_p() wrapping. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 77be3c24a427..3076b1cc05df 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -2397,7 +2397,7 @@ static const struct dev_pm_ops r8a66597_dev_pm_ops = {
2397#define R8A66597_DEV_PM_OPS NULL 2397#define R8A66597_DEV_PM_OPS NULL
2398#endif 2398#endif
2399 2399
2400static int __init_or_module r8a66597_remove(struct platform_device *pdev) 2400static int __devexit r8a66597_remove(struct platform_device *pdev)
2401{ 2401{
2402 struct r8a66597 *r8a66597 = dev_get_drvdata(&pdev->dev); 2402 struct r8a66597 *r8a66597 = dev_get_drvdata(&pdev->dev);
2403 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597); 2403 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597);
@@ -2542,7 +2542,7 @@ clean_up:
2542 2542
2543static struct platform_driver r8a66597_driver = { 2543static struct platform_driver r8a66597_driver = {
2544 .probe = r8a66597_probe, 2544 .probe = r8a66597_probe,
2545 .remove = r8a66597_remove, 2545 .remove = __devexit_p(r8a66597_remove),
2546 .driver = { 2546 .driver = {
2547 .name = (char *) hcd_name, 2547 .name = (char *) hcd_name,
2548 .owner = THIS_MODULE, 2548 .owner = THIS_MODULE,