developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | --- a/drivers/spi/spi-mt65xx.c |
| 2 | +++ b/drivers/spi/spi-mt65xx.c |
| 3 | @@ -1073,7 +1073,7 @@ static int mtk_spi_probe(struct platform |
| 4 | goto err_put_master; |
| 5 | } |
| 6 | |
| 7 | -/* |
| 8 | + |
| 9 | mdata->parent_clk = devm_clk_get(&pdev->dev, "parent-clk"); |
| 10 | if (IS_ERR(mdata->parent_clk)) { |
| 11 | ret = PTR_ERR(mdata->parent_clk); |
| 12 | @@ -1101,17 +1101,17 @@ static int mtk_spi_probe(struct platform |
| 13 | goto err_put_master; |
| 14 | } |
| 15 | |
| 16 | - ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); |
| 17 | + /*ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); |
| 18 | if (ret < 0) { |
| 19 | dev_err(&pdev->dev, "failed to clk_set_parent (%d)\n", ret); |
| 20 | clk_disable_unprepare(mdata->spi_clk); |
| 21 | goto err_put_master; |
| 22 | } |
| 23 | |
| 24 | - clk_disable_unprepare(mdata->spi_clk); |
| 25 | + clk_disable_unprepare(mdata->sel_clk);*/ |
| 26 | + |
| 27 | + //pm_runtime_enable(&pdev->dev); |
| 28 | |
| 29 | - pm_runtime_enable(&pdev->dev); |
| 30 | -*/ |
| 31 | ret = devm_spi_register_master(&pdev->dev, master); |
| 32 | if (ret) { |
| 33 | dev_err(&pdev->dev, "failed to register master (%d)\n", ret); |