Skip to content

Commit c33917b

Browse files
ajitkupandeybebarino
authored andcommitted
clk: x86: Use dynamic con_id string during clk registration
Replace hard coded con_id string with fch_data->name. We have clk consumers looking up with different clock names, hence use dynamic con_id string during clk lookup registration. fch_data->name will be initialized in acpi driver based on fmw property value. Signed-off-by: Ajit Kumar Pandey <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 7fdb98e commit c33917b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/x86/clk-fch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static int fch_clk_probe(struct platform_device *pdev)
7575
OSCCLKENB, CLK_GATE_SET_TO_DISABLE, NULL);
7676

7777
devm_clk_hw_register_clkdev(&pdev->dev, hws[ST_CLK_GATE],
78-
"oscout1", NULL);
78+
fch_data->name, NULL);
7979
} else {
8080
hws[CLK_48M_FIXED] = clk_hw_register_fixed_rate(NULL, "clk48MHz",
8181
NULL, 0, 48000000);
@@ -85,7 +85,7 @@ static int fch_clk_probe(struct platform_device *pdev)
8585
OSCCLKENB, CLK_GATE_SET_TO_DISABLE, NULL);
8686

8787
devm_clk_hw_register_clkdev(&pdev->dev, hws[CLK_GATE_FIXED],
88-
"oscout1", NULL);
88+
fch_data->name, NULL);
8989
}
9090

9191
pci_dev_put(rdev);

0 commit comments

Comments
 (0)