Commit 0238a0d8 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 25ab998e
...@@ -2397,7 +2397,7 @@ static const struct dev_pm_ops r8a66597_dev_pm_ops = { ...@@ -2397,7 +2397,7 @@ static const struct dev_pm_ops r8a66597_dev_pm_ops = {
#define R8A66597_DEV_PM_OPS NULL #define R8A66597_DEV_PM_OPS NULL
#endif #endif
static int __init_or_module r8a66597_remove(struct platform_device *pdev) static int __devexit r8a66597_remove(struct platform_device *pdev)
{ {
struct r8a66597 *r8a66597 = dev_get_drvdata(&pdev->dev); struct r8a66597 *r8a66597 = dev_get_drvdata(&pdev->dev);
struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597); struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597);
...@@ -2542,7 +2542,7 @@ static int __devinit r8a66597_probe(struct platform_device *pdev) ...@@ -2542,7 +2542,7 @@ static int __devinit r8a66597_probe(struct platform_device *pdev)
static struct platform_driver r8a66597_driver = { static struct platform_driver r8a66597_driver = {
.probe = r8a66597_probe, .probe = r8a66597_probe,
.remove = r8a66597_remove, .remove = __devexit_p(r8a66597_remove),
.driver = { .driver = {
.name = (char *) hcd_name, .name = (char *) hcd_name,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment