clk: renesas: cpg-mssr: Use of_device_get_match_data() helper
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 9 Jun 2017 12:49:43 +0000 (14:49 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 20 Jun 2017 02:02:43 +0000 (19:02 -0700)
commit34deaff763d41b5f73723a71c5f45383374dc7eb
tree87e3ecea7e8d2443ffd042c7bdde19c42b93e33f
parent3ff77275f770679f1a3a2d8667f8c52522ba7074
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: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/renesas/renesas-cpg-mssr.c