--- zzzz-none-000/linux-4.4.60/drivers/clk/qcom/mmcc-apq8084.c 2017-04-08 07:53:53.000000000 +0000 +++ wasp-540e-714/linux-4.4.60/drivers/clk/qcom/mmcc-apq8084.c 2019-07-03 09:21:34.000000000 +0000 @@ -3396,6 +3396,9 @@ return ret; regmap = dev_get_regmap(&pdev->dev, NULL); + if (!regmap) + return -ENODEV; + clk_pll_configure_sr_hpm_lp(&mmpll1, regmap, &mmpll1_config, true); clk_pll_configure_sr_hpm_lp(&mmpll3, regmap, &mmpll3_config, false);