mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge remote-tracking branch 'spi/fix/mpc512x' into spi-linus
This commit is contained in:
commit
b242954b3c
@ -522,8 +522,10 @@ static int mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr,
|
|||||||
psc_num = master->bus_num;
|
psc_num = master->bus_num;
|
||||||
snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num);
|
snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num);
|
||||||
clk = devm_clk_get(dev, clk_name);
|
clk = devm_clk_get(dev, clk_name);
|
||||||
if (IS_ERR(clk))
|
if (IS_ERR(clk)) {
|
||||||
|
ret = PTR_ERR(clk);
|
||||||
goto free_irq;
|
goto free_irq;
|
||||||
|
}
|
||||||
ret = clk_prepare_enable(clk);
|
ret = clk_prepare_enable(clk);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_irq;
|
goto free_irq;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user