Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34deaff7 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Stephen Boyd
Browse files

clk: renesas: cpg-mssr: Use of_device_get_match_data() helper



If CONFIG_OF=n:

    drivers/clk/renesas/renesas-cpg-mssr.c: In function ‘cpg_mssr_probe’:
    drivers/clk/renesas/renesas-cpg-mssr.c:702: warning: dereferencing ‘void *’ pointer
    drivers/clk/renesas/renesas-cpg-mssr.c:702: error: request for member ‘data’ in something not a structure or union

To fix this, use the of_device_get_match_data() helper, for which a
dummy version is provided if CONFIG_OF=n.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 3ff77275
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -699,7 +699,7 @@ static int __init cpg_mssr_probe(struct platform_device *pdev)
	struct clk **clks;
	int error;

	info = of_match_node(cpg_mssr_match, np)->data;
	info = of_device_get_match_data(dev);
	if (info->init) {
		error = info->init(dev);
		if (error)