Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48762
b: refs/heads/master
c: 398acce
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Feb 16, 2007
1 parent 87516b0 commit 93c08ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 691895c661b0419e7cd65429e5077264a2ca01a3
refs/heads/master: 398acce7af5eaead2093cf2fc0381e511f5f3edf
15 changes: 7 additions & 8 deletions trunk/drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ static int at91_ep_set_halt(struct usb_ep *_ep, int value)
return status;
}

static struct usb_ep_ops at91_ep_ops = {
static const struct usb_ep_ops at91_ep_ops = {
.enable = at91_ep_enable,
.disable = at91_ep_disable,
.alloc_request = at91_ep_alloc_request,
Expand Down Expand Up @@ -1651,7 +1651,7 @@ static void at91udc_shutdown(struct platform_device *dev)
pullup(platform_get_drvdata(dev), 0);
}

static int __devinit at91udc_probe(struct platform_device *pdev)
static int __init at91udc_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct at91_udc *udc;
Expand Down Expand Up @@ -1762,7 +1762,7 @@ static int __devinit at91udc_probe(struct platform_device *pdev)
return retval;
}

static int __devexit at91udc_remove(struct platform_device *pdev)
static int __exit at91udc_remove(struct platform_device *pdev)
{
struct at91_udc *udc = platform_get_drvdata(pdev);
struct resource *res;
Expand Down Expand Up @@ -1836,8 +1836,7 @@ static int at91udc_resume(struct platform_device *pdev)
#endif

static struct platform_driver at91_udc = {
.probe = at91udc_probe,
.remove = __devexit_p(at91udc_remove),
.remove = __exit_p(at91udc_remove),
.shutdown = at91udc_shutdown,
.suspend = at91udc_suspend,
.resume = at91udc_resume,
Expand All @@ -1847,13 +1846,13 @@ static struct platform_driver at91_udc = {
},
};

static int __devinit udc_init_module(void)
static int __init udc_init_module(void)
{
return platform_driver_register(&at91_udc);
return platform_driver_probe(&at91_udc, at91udc_probe);
}
module_init(udc_init_module);

static void __devexit udc_exit_module(void)
static void __exit udc_exit_module(void)
{
platform_driver_unregister(&at91_udc);
}
Expand Down

0 comments on commit 93c08ea

Please sign in to comment.