Message ID | 1450197123-1822-3-git-send-email-p.marczak@samsung.com |
---|---|
State | Rejected |
Delegated to: | Simon Glass |
Headers | show |
diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 0f22b23..383c6ce 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -350,7 +350,7 @@ static int gpio_exynos_bind(struct udevice *parent) dev->of_offset = node; - reg = dev_get_addr(dev); + reg = dev_get_reg(dev); if (reg != FDT_ADDR_T_NONE) bank = (struct s5p_gpio_bank *)((ulong)base + reg);
In a result of enabling the CONFIG_OF_TRANSLAE, function dev_get_addr(), doesn't support device tree nodes with 'size-cells == 0'. But this is the way how the s5p gpio driver's compatible device tree nodes are defined. Switching the driver to use function dev_get_reg(), fixes this issue. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Simon Glass <sjg@chromium.org> --- drivers/gpio/s5p_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)