summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorWalter Lozano <walter.lozano@collabora.com>2020-06-25 07:10:10 +0300
committerSimon Glass <sjg@chromium.org>2020-07-10 07:00:29 +0300
commit908d0243ac0bdf2672ec584a52d178100fff3fb2 (patch)
tree5d67cae016d0c7bde80a715b892ca1336575cbcc /drivers/core
parent6397427c476be73660408bedbcc548f32406c128 (diff)
downloadu-boot-908d0243ac0bdf2672ec584a52d178100fff3fb2.tar.xz
core: drop const for struct driver_info
In order to prepare for a new support of phandle when OF_PLATDATA is used drop the const for struct driver_info as this struct will need to be updated on runtime. Signed-off-by: Walter Lozano <walter.lozano@collabora.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/device.c2
-rw-r--r--drivers/core/root.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c
index a7408d9c76..2d6c667564 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -248,7 +248,7 @@ int device_bind_ofnode(struct udevice *parent, const struct driver *drv,
}
int device_bind_by_name(struct udevice *parent, bool pre_reloc_only,
- const struct driver_info *info, struct udevice **devp)
+ struct driver_info *info, struct udevice **devp)
{
struct driver *drv;
uint platdata_size = 0;
diff --git a/drivers/core/root.c b/drivers/core/root.c
index 7d257ea887..23a65cd71d 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -26,7 +26,7 @@
DECLARE_GLOBAL_DATA_PTR;
-static const struct driver_info root_info = {
+static struct driver_info root_info = {
.name = "root_driver",
};