clk: renesas: cpg-mssr: Initialize error pointer using ERR_PTR()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 May 2017 13:43:56 +0000 (15:43 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 24 May 2017 08:19:24 +0000 (10:19 +0200)
commit76394a36efb2dcd1ea30607a3831f65272694a62
tree274ce46db7cec19c1a4658284e6c29a7844803eb
parentc5c3bdaacebd42a96cca0bd67967ce3b28499efd
clk: renesas: cpg-mssr: Initialize error pointer using ERR_PTR()

Coccinelle warns:

    drivers/clk/renesas/renesas-cpg-mssr.c:323:14-21: ERROR: PTR_ERR applied after initialization to constant on line 260

Initialize clk using ERR_PTR(-ENOTSUPP) instead of NULL to fix this.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/renesas-cpg-mssr.c