Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364606
b: refs/heads/master
c: ef222cb
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 1626484 commit 7eb4f65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: 756380e04276c9099f41716d279d24e5847b1030
refs/heads/master: ef222cb5b575df57d8cd511965800519b90a6c31
15 changes: 3 additions & 12 deletions trunk/drivers/usb/gadget/pxa27x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ static struct pxa_udc memory = {
* Perform basic init : allocates udc clock, creates sysfs files, requests
* irq.
*/
static int __init pxa_udc_probe(struct platform_device *pdev)
static int pxa_udc_probe(struct platform_device *pdev)
{
struct resource *regs;
struct pxa_udc *udc = &memory;
Expand Down Expand Up @@ -2612,6 +2612,7 @@ static struct platform_driver udc_driver = {
.name = "pxa27x-udc",
.owner = THIS_MODULE,
},
.probe = pxa_udc_probe,
.remove = __exit_p(pxa_udc_remove),
.shutdown = pxa_udc_shutdown,
#ifdef CONFIG_PM
Expand All @@ -2620,17 +2621,7 @@ static struct platform_driver udc_driver = {
#endif
};

static int __init udc_init(void)
{
return platform_driver_probe(&udc_driver, pxa_udc_probe);
}
module_init(udc_init);

static void __exit udc_exit(void)
{
platform_driver_unregister(&udc_driver);
}
module_exit(udc_exit);
module_platform_driver(udc_driver);

MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_AUTHOR("Robert Jarzmik");
Expand Down

0 comments on commit 7eb4f65

Please sign in to comment.