From: Krzysztof Kozlowski Date: Tue, 7 Aug 2018 16:17:13 +0000 (+0200) Subject: clk: s2mps11: Use existing defines from bindings for clock IDs X-Git-Tag: v4.20-rc1~49^2~14^3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8748b4a786a9e3973f6e6521edff7b266cafef48;p=thirdparty%2Fkernel%2Flinux.git clk: s2mps11: Use existing defines from bindings for clock IDs The clock IDs must match between DeviceTree bindings and the driver. There is already a header file used by DeviceTree sources so include it in the driver to remove duplicated symbols. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index d44e0eea31ec6..7c961bf2bfc77 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -28,12 +28,7 @@ #include #include -enum { - S2MPS11_CLK_AP = 0, - S2MPS11_CLK_CP, - S2MPS11_CLK_BT, - S2MPS11_CLKS_NUM, -}; +#include struct s2mps11_clk { struct sec_pmic_dev *iodev;