aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-ti-pipe3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/phy-ti-pipe3.c')
-rw-r--r--drivers/phy/phy-ti-pipe3.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c
index 2ba610b72ca2..53f295c1bab1 100644
--- a/drivers/phy/phy-ti-pipe3.c
+++ b/drivers/phy/phy-ti-pipe3.c
@@ -287,9 +287,7 @@ static struct phy_ops ops = {
287 .owner = THIS_MODULE, 287 .owner = THIS_MODULE,
288}; 288};
289 289
290#ifdef CONFIG_OF
291static const struct of_device_id ti_pipe3_id_table[]; 290static const struct of_device_id ti_pipe3_id_table[];
292#endif
293 291
294static int ti_pipe3_probe(struct platform_device *pdev) 292static int ti_pipe3_probe(struct platform_device *pdev)
295{ 293{
@@ -311,8 +309,7 @@ static int ti_pipe3_probe(struct platform_device *pdev)
311 spin_lock_init(&phy->lock); 309 spin_lock_init(&phy->lock);
312 310
313 if (!of_device_is_compatible(node, "ti,phy-pipe3-pcie")) { 311 if (!of_device_is_compatible(node, "ti,phy-pipe3-pcie")) {
314 match = of_match_device(of_match_ptr(ti_pipe3_id_table), 312 match = of_match_device(ti_pipe3_id_table, &pdev->dev);
315 &pdev->dev);
316 if (!match) 313 if (!match)
317 return -EINVAL; 314 return -EINVAL;
318 315
@@ -570,7 +567,6 @@ static const struct dev_pm_ops ti_pipe3_pm_ops = {
570 SET_SYSTEM_SLEEP_PM_OPS(ti_pipe3_suspend, ti_pipe3_resume) 567 SET_SYSTEM_SLEEP_PM_OPS(ti_pipe3_suspend, ti_pipe3_resume)
571}; 568};
572 569
573#ifdef CONFIG_OF
574static const struct of_device_id ti_pipe3_id_table[] = { 570static const struct of_device_id ti_pipe3_id_table[] = {
575 { 571 {
576 .compatible = "ti,phy-usb3", 572 .compatible = "ti,phy-usb3",
@@ -590,7 +586,6 @@ static const struct of_device_id ti_pipe3_id_table[] = {
590 {} 586 {}
591}; 587};
592MODULE_DEVICE_TABLE(of, ti_pipe3_id_table); 588MODULE_DEVICE_TABLE(of, ti_pipe3_id_table);
593#endif
594 589
595static struct platform_driver ti_pipe3_driver = { 590static struct platform_driver ti_pipe3_driver = {
596 .probe = ti_pipe3_probe, 591 .probe = ti_pipe3_probe,
@@ -598,7 +593,7 @@ static struct platform_driver ti_pipe3_driver = {
598 .driver = { 593 .driver = {
599 .name = "ti-pipe3", 594 .name = "ti-pipe3",
600 .pm = &ti_pipe3_pm_ops, 595 .pm = &ti_pipe3_pm_ops,
601 .of_match_table = of_match_ptr(ti_pipe3_id_table), 596 .of_match_table = ti_pipe3_id_table,
602 }, 597 },
603}; 598};
604 599