]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/exynos_hs_i2c.c
Merge branch 'master' of git://git.denx.de/u-boot-spi
[u-boot] / drivers / i2c / exynos_hs_i2c.c
index 2dd75fd154c431d01a8b0b169e3d5c9c2d7d668b..a0821c92578f579cdd89ca71da38e3ec9f3934e4 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2016, Google Inc
  *
  * (C) Copyright 2002
  * David Mueller, ELSOFT AG, d.mueller@elsoft.ch
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -524,7 +523,7 @@ static int s3c_i2c_ofdata_to_platdata(struct udevice *dev)
 
        node = dev_of_offset(dev);
 
-       i2c_bus->hsregs = (struct exynos5_hsi2c *)dev_get_addr(dev);
+       i2c_bus->hsregs = (struct exynos5_hsi2c *)devfdt_get_addr(dev);
 
        i2c_bus->id = pinmux_decode_periph_id(blob, node);