Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316993
b: refs/heads/master
c: 6bf8359
h: refs/heads/master
i:
  316991: 1382f66
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 25c0d3f commit 63bb70c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 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: 17d2fcc393bfe58cc1e2bc34603a48e447ff7afb
refs/heads/master: 6bf83594e3fa1b1147ed1baff356d4fd30846b84
21 changes: 15 additions & 6 deletions trunk/drivers/usb/chipidea/ci13xxx_msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ static int __devinit ci13xxx_msm_probe(struct platform_device *pdev)
if (ret)
goto put_platform;

platform_set_drvdata(pdev, plat_ci);

pm_runtime_no_callbacks(&pdev->dev);
pm_runtime_enable(&pdev->dev);

Expand All @@ -95,16 +97,23 @@ static int __devinit ci13xxx_msm_probe(struct platform_device *pdev)
return ret;
}

static int __devexit ci13xxx_msm_remove(struct platform_device *pdev)
{
struct platform_device *plat_ci = platform_get_drvdata(pdev);

pm_runtime_disable(&pdev->dev);
platform_device_unregister(plat_ci);

return 0;
}

static struct platform_driver ci13xxx_msm_driver = {
.probe = ci13xxx_msm_probe,
.remove = __devexit_p(ci13xxx_msm_remove),
.driver = { .name = "msm_hsusb", },
};
MODULE_ALIAS("platform:msm_hsusb");

static int __init ci13xxx_msm_init(void)
{
return platform_driver_register(&ci13xxx_msm_driver);
}
module_init(ci13xxx_msm_init);
module_platform_driver(ci13xxx_msm_driver);

MODULE_ALIAS("platform:msm_hsusb");
MODULE_LICENSE("GPL v2");

0 comments on commit 63bb70c

Please sign in to comment.