Skip to content
Snippets Groups Projects
Commit 5289123b authored by Jacky Bai's avatar Jacky Bai Committed by Ondrej Lutera
Browse files

LF-4882-02 input: keyboard: snvs_pwrkey: Change the clock name to null


The clock will be get failed if the clock name is not 'snvs',
it is not what we expected if the clock need to be managed by driver.
As for the SNVS module, there is only one clock for it, so assigned
a unspecified clock name 'NULL'.

Signed-off-by: default avatarJacky Bai <ping.bai@nxp.com>
Reviewed-by: default avatarYe Li <ye.li@nxp.com>
parent a052e1cb
No related merge requests found
......@@ -231,7 +231,7 @@ static int imx_snvs_pwrkey_probe(struct platform_device *pdev)
pdata->emulate_press = of_property_read_bool(np, "emulate-press");
pdata->clk = devm_clk_get(&pdev->dev, "snvs");
pdata->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(pdata->clk)) {
pdata->clk = NULL;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment