X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fram%2Frockchip%2Fsdram_rk3288.c;h=bb3cf48788c2d3f5d2b4ab2d118edb8257a66d30;hb=d35812368a59;hp=95efb117fc17c439327bdc485d3749b22e69f148;hpb=4d1c166fee4a34e8a7d8d05b2a4102c7c668726d;p=u-boot diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c index 95efb117fc..bb3cf48788 100644 --- a/drivers/ram/rockchip/sdram_rk3288.c +++ b/drivers/ram/rockchip/sdram_rk3288.c @@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * (C) Copyright 2015 Google, Inc * Copyright 2014 Rockchip Inc. * - * SPDX-License-Identifier: GPL-2.0 - * * Adapted from coreboot. */ @@ -27,8 +26,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - struct chan_info { struct rk3288_ddr_pctl *pctl; struct rk3288_ddr_publ *publ; @@ -1003,7 +1000,7 @@ static int rk3288_dmc_ofdata_to_platdata(struct udevice *dev) priv->is_veyron = !fdt_node_check_compatible(blob, 0, "google,veyron"); #endif - ret = regmap_init_mem(dev, ¶ms->map); + ret = regmap_init_mem(dev_ofnode(dev), ¶ms->map); if (ret) return ret; #endif