mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
Update devfreq next for v6.1
Detailed description for this pull request: 1. Handle -EPROBE_DEFER when regulator is not probed on mtk-ci-devfreq.c 2. Use dev_err_probe to reduce the error log on rockchip-dfi.c -----BEGIN PGP SIGNATURE----- iQJKBAABCgA0FiEEsSpuqBtbWtRe4rLGnM3fLN7rz1MFAmMwqywWHGN3MDAuY2hv aUBzYW1zdW5nLmNvbQAKCRCczd8s3uvPU5fyD/9YSSK8/uX5ZWEynU2gB+uQuvPe Ciy42b+vQQvmLM6ELCUhvD3W9EH7GCREnh1dbMa8LREz8JpS5z1Q/B/0QZD5OJ5p Hk81Dnl+f6OfZ++fvdrouYdyj4UiPNOW8j1V00gk2p/VATG9jhyjCk9rp1lVjGyW LL2roMkgKglpsQGv5WZhXHoSCfEXpXwLikuaD6pLLIISbdthiiM/X6w6Krz+0sY5 MhgAVWpfpV1OhvMEKXUGbg0UaEMCdBINSLD7miIxKN1GlK/1Zpoc2zTReTEqLzGd dflNyUWP2ruplPl+m2ZLHwIPYS586aVyPNXAJvEcnrnyM9OdGhpf7YInAwR5xEtG 12Y546YnvDmbTxDJpQAkMrG9n7Kp2oxBRM+JKk/lDZc8JVjqsXo1P72qgvtJmN0e E+LU2RDWwiqaynD3g6UiZZRWBEDXnIC/4adxlLu8TNsKD8nYD/Rpzhak4YI9hmjA 7RpLjmYcd0WuvxdlES/YoujQbHEMuZJAHYC6oSLwwBoK+An3NFvzdr3Ddn4HMPiF WIco5MY7gd6Sd+jUJarSfrbntEz2apUBIn1EqdgNoBnQa/cSNqHIYv1e4PuA7gkq Iseyl3vV1CaE3iBYnnOncbiolRgHsPDoUonDCQVd8JoFpRZZt+BYj12bZtxrvbIx qly4awiytFstr+1FzA== =c+Jg -----END PGP SIGNATURE----- Merge tag 'devfreq-next-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux Pull devfreq next for v6.1 from Chanwoo Choi: "1. Handle -EPROBE_DEFER when regulator is not probed on mtk-ci-devfreq.c 2. Use dev_err_probe to reduce the error log on rockchip-dfi.c" * tag 'devfreq-next-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux: PM / devfreq: rockchip-dfi: Fix an error message PM / devfreq: mtk-cci: Handle sram regulator probe deferral
This commit is contained in:
commit
599618e589
|
|
@ -189,10 +189,9 @@ static int rockchip_dfi_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(data->regs);
|
||||
|
||||
data->clk = devm_clk_get(dev, "pclk_ddr_mon");
|
||||
if (IS_ERR(data->clk)) {
|
||||
dev_err(dev, "Cannot get the clk dmc_clk\n");
|
||||
return PTR_ERR(data->clk);
|
||||
}
|
||||
if (IS_ERR(data->clk))
|
||||
return dev_err_probe(dev, PTR_ERR(data->clk),
|
||||
"Cannot get the clk pclk_ddr_mon\n");
|
||||
|
||||
/* try to find the optional reference to the pmu syscon */
|
||||
node = of_parse_phandle(np, "rockchip,pmu", 0);
|
||||
|
|
|
|||
|
|
@ -291,9 +291,13 @@ static int mtk_ccifreq_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
drv->sram_reg = devm_regulator_get_optional(dev, "sram");
|
||||
if (IS_ERR(drv->sram_reg))
|
||||
if (IS_ERR(drv->sram_reg)) {
|
||||
ret = PTR_ERR(drv->sram_reg);
|
||||
if (ret == -EPROBE_DEFER)
|
||||
goto out_free_resources;
|
||||
|
||||
drv->sram_reg = NULL;
|
||||
else {
|
||||
} else {
|
||||
ret = regulator_enable(drv->sram_reg);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to enable sram regulator\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user