mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
misc: fs_loader: Fix alignment of fs_loader driver
DM_DRIVER_GET will redeclare the fs_loader driver without the correct
alignment. This causes GCC to use the default section alignment of 32
bytes. This in turn creates a gap in the linker list due to the padding
required to achieve the correct alignment, corrupting all further entries.
Use DM_DRIVER_REF instead, which doesn't redeclare anything.
Fixes: 0998a20cfc
("misc: fs_loader: Add function to get the chosen loader")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
4cb6c8e5f0
commit
89cfa35bfc
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ int get_fs_loader(struct udevice **dev)
|
|||
return ret;
|
||||
|
||||
/* Just create a new device */
|
||||
ret = device_bind(dm_root(), DM_DRIVER_GET(fs_loader), "default-loader",
|
||||
ret = device_bind(dm_root(), DM_DRIVER_REF(fs_loader), "default-loader",
|
||||
&default_plat, ofnode_null(), dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue