net: sun8i_emac: Use consistent clock bitfield definitions
[oweals/u-boot.git] / drivers / phy / sandbox-phy.c
index 9ad820c24c9dcc3179bcc2bb7725236160feb082..84ff5c6275b523900d838d58f7aaa6b6bd6896e9 100644 (file)
@@ -1,16 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
  * Written by Jean-Jacques Hiblot  <jjhiblot@ti.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct sandbox_phy_priv {
        bool initialized;
        bool on;
@@ -80,8 +77,7 @@ static int sandbox_phy_probe(struct udevice *dev)
 
        priv->initialized = false;
        priv->on = false;
-       priv->broken = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev),
-                                      "broken");
+       priv->broken = dev_read_bool(dev, "broken");
 
        return 0;
 }