aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 95c88f929f27..ad3fbc80e044 100644
--- a/drivers/phy/phy-ti-pipe3.c
+++ b/drivers/phy/phy-ti-pipe3.c
@@ -291,9 +291,7 @@ static struct phy_ops ops = {
291 .owner = THIS_MODULE, 291 .owner = THIS_MODULE,
292}; 292};
293 293
294#ifdef CONFIG_OF
295static const struct of_device_id ti_pipe3_id_table[]; 294static const struct of_device_id ti_pipe3_id_table[];
296#endif
297 295
298static int ti_pipe3_probe(struct platform_device *pdev) 296static int ti_pipe3_probe(struct platform_device *pdev)
299{ 297{
@@ -315,8 +313,7 @@ static int ti_pipe3_probe(struct platform_device *pdev)
315 spin_lock_init(&phy->lock); 313 spin_lock_init(&phy->lock);
316 314
317 if (!of_device_is_compatible(node, "ti,phy-pipe3-pcie")) { 315 if (!of_device_is_compatible(node, "ti,phy-pipe3-pcie")) {
318 match = of_match_device(of_match_ptr(ti_pipe3_id_table), 316 match = of_match_device(ti_pipe3_id_table, &pdev->dev);
319 &pdev->dev);
320 if (!match) 317 if (!match)
321 return -EINVAL; 318 return -EINVAL;
322 319
@@ -574,7 +571,6 @@ static const struct dev_pm_ops ti_pipe3_pm_ops = {
574 SET_SYSTEM_SLEEP_PM_OPS(ti_pipe3_suspend, ti_pipe3_resume) 571 SET_SYSTEM_SLEEP_PM_OPS(ti_pipe3_suspend, ti_pipe3_resume)
575}; 572};
576 573
577#ifdef CONFIG_OF
578static const struct of_device_id ti_pipe3_id_table[] = { 574static const struct of_device_id ti_pipe3_id_table[] = {
579 { 575 {
580 .compatible = "ti,phy-usb3", 576 .compatible = "ti,phy-usb3",
@@ -594,7 +590,6 @@ static const struct of_device_id ti_pipe3_id_table[] = {
594 {} 590 {}
595}; 591};
596MODULE_DEVICE_TABLE(of, ti_pipe3_id_table); 592MODULE_DEVICE_TABLE(of, ti_pipe3_id_table);
597#endif
598 593
599static struct platform_driver ti_pipe3_driver = { 594static struct platform_driver ti_pipe3_driver = {
600 .probe = ti_pipe3_probe, 595 .probe = ti_pipe3_probe,
@@ -602,7 +597,7 @@ static struct platform_driver ti_pipe3_driver = {
602 .driver = { 597 .driver = {
603 .name = "ti-pipe3", 598 .name = "ti-pipe3",
604 .pm = &ti_pipe3_pm_ops, 599 .pm = &ti_pipe3_pm_ops,
605 .of_match_table = of_match_ptr(ti_pipe3_id_table), 600 .of_match_table = ti_pipe3_id_table,
606 }, 601 },
607}; 602};
608 603