X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fi2c%2Fexynos_hs_i2c.c;h=a0821c92578f579cdd89ca71da38e3ec9f3934e4;hb=c232d14d11e29c88f2c6149d2c152f496caa5889;hp=2dd75fd154c431d01a8b0b169e3d5c9c2d7d668b;hpb=e1a71f8b339220fa74c9cd5d36ae9c444c492e83;p=u-boot diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index 2dd75fd154..a0821c9257 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -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 @@ -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);