Commit 96cad6ff authored by Sergio Prado's avatar Sergio Prado Committed by Greg Kroah-Hartman

usb: ohci: s3c2410: allow probing from device tree

Allows configuring Samsung's s3c2410 USB OHCI controller using a
devicetree.
Signed-off-by: default avatarSergio Prado <sergio.prado@e-labworks.com>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4000188b
...@@ -457,6 +457,13 @@ static const struct dev_pm_ops ohci_hcd_s3c2410_pm_ops = { ...@@ -457,6 +457,13 @@ static const struct dev_pm_ops ohci_hcd_s3c2410_pm_ops = {
.resume = ohci_hcd_s3c2410_drv_resume, .resume = ohci_hcd_s3c2410_drv_resume,
}; };
static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = {
{ .compatible = "samsung,s3c2410-ohci" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids);
static struct platform_driver ohci_hcd_s3c2410_driver = { static struct platform_driver ohci_hcd_s3c2410_driver = {
.probe = ohci_hcd_s3c2410_drv_probe, .probe = ohci_hcd_s3c2410_drv_probe,
.remove = ohci_hcd_s3c2410_drv_remove, .remove = ohci_hcd_s3c2410_drv_remove,
...@@ -464,6 +471,7 @@ static struct platform_driver ohci_hcd_s3c2410_driver = { ...@@ -464,6 +471,7 @@ static struct platform_driver ohci_hcd_s3c2410_driver = {
.driver = { .driver = {
.name = "s3c2410-ohci", .name = "s3c2410-ohci",
.pm = &ohci_hcd_s3c2410_pm_ops, .pm = &ohci_hcd_s3c2410_pm_ops,
.of_match_table = ohci_hcd_s3c2410_dt_ids,
}, },
}; };
......
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