diff options
author | Walter Lozano <walter.lozano@collabora.com> | 2020-06-25 07:10:04 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-10 03:57:22 +0300 |
commit | e3e2470fdd57567e8df04e76203cd4e580a93975 (patch) | |
tree | 143c1602296b7fb2196fa190b3456fcd1904af24 /board | |
parent | 229806f7593f3971744c9e7fbfdd85ca6e724b2d (diff) | |
download | u-boot-e3e2470fdd57567e8df04e76203cd4e580a93975.tar.xz |
drivers: rename drivers to match compatible string
When using OF_PLATDATA, the bind process between devices and drivers
is performed trying to match compatible string with driver names.
However driver names are not strictly defined, and also there are different
names used when declaring a driver with U_BOOT_DRIVER, the name of the
symbol used in the linker list and the used in the struct driver_info.
In order to make things a bit more clear, rename the drivers names. This
will also help for further OF_PLATDATA improvements, such as checking
for valid driver names.
Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Add a fix for sandbox of-platdata to avoid using an invalid ANSI colour:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/davinci/da8xxevm/omapl138_lcdk.c | 2 | ||||
-rw-r--r-- | board/sandbox/sandbox.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index 84603cb117..b60c83b47f 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -380,7 +380,7 @@ static const struct davinci_mmc_plat mmc_platdata = { }, }; U_BOOT_DEVICE(omapl138_mmc) = { - .name = "davinci_mmc", + .name = "ti_da830_mmc", .platdata = &mmc_platdata, }; diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c index 1372003018..bd39109f3b 100644 --- a/board/sandbox/sandbox.c +++ b/board/sandbox/sandbox.c @@ -22,7 +22,7 @@ gd_t *gd; /* Add a simple GPIO device */ U_BOOT_DEVICE(gpio_sandbox) = { - .name = "gpio_sandbox", + .name = "sandbox_gpio", }; void flush_cache(unsigned long start, unsigned long size) |