projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: rmobile: Enable USB PHY on Gen2
[oweals/u-boot.git]
/
drivers
/
core
/
simple-bus.c
diff --git
a/drivers/core/simple-bus.c
b/drivers/core/simple-bus.c
index a300217d39a898fa3f04fc3a4dc48445fe0a015b..e16d8a9ff4a9b6bb111e391d70792d7481c8c84d 100644
(file)
--- a/
drivers/core/simple-bus.c
+++ b/
drivers/core/simple-bus.c
@@
-1,14
+1,11
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2014 Google, Inc
/*
* Copyright (c) 2014 Google, Inc
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
*/
#include <common.h>
#include <dm.h>
-DECLARE_GLOBAL_DATA_PTR;
-
struct simple_bus_plat {
u32 base;
u32 size;
struct simple_bus_plat {
u32 base;
u32 size;
@@
-33,8
+30,7
@@
static int simple_bus_post_bind(struct udevice *dev)
u32 cell[3];
int ret;
u32 cell[3];
int ret;
- ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "ranges",
- cell, ARRAY_SIZE(cell));
+ ret = dev_read_u32_array(dev, "ranges", cell, ARRAY_SIZE(cell));
if (!ret) {
struct simple_bus_plat *plat = dev_get_uclass_platdata(dev);
if (!ret) {
struct simple_bus_plat *plat = dev_get_uclass_platdata(dev);