]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/sunxi_emac.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / net / sunxi_emac.c
index 99339db4bf58b9ff812d69faf134a802dba305fc..d20b808c12b79f1ac4a879e8bb871d73d750d27e 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * sunxi_emac.c -- Allwinner A10 ethernet driver
  *
  * (C) Copyright 2012, Stefan Roese <sr@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -576,7 +575,7 @@ static int sunxi_emac_eth_ofdata_to_platdata(struct udevice *dev)
 {
        struct eth_pdata *pdata = dev_get_platdata(dev);
 
-       pdata->iobase = dev_get_addr(dev);
+       pdata->iobase = devfdt_get_addr(dev);
 
        return 0;
 }