]> git.sur5r.net Git - u-boot/blobdiff - drivers/clk/clk_fixed_rate.c
spi: mxc: Fix compilation problem of DM_SPI class driver
[u-boot] / drivers / clk / clk_fixed_rate.c
index 63565b6ed8d12fae68a9d122b7d88482eec6f769..d8d9f86c8642c927bce696ab97d111090895d8d0 100644 (file)
@@ -1,15 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct clk_fixed_rate {
        unsigned long fixed_rate;
 };
@@ -31,8 +28,8 @@ const struct clk_ops clk_fixed_rate_ops = {
 static int clk_fixed_rate_ofdata_to_platdata(struct udevice *dev)
 {
 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
-       to_clk_fixed_rate(dev)->fixed_rate = dev_read_u32_default(dev,
-                                                       "clock-frequency", 0);
+       to_clk_fixed_rate(dev)->fixed_rate =
+               dev_read_u32_default(dev, "clock-frequency", 0);
 #endif
 
        return 0;