mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 19:04:38 +00:00
remoteproc: k3: Fix not calling dev_xxx with a device
Pass a device to functions which log with one. Signed-off-by: Sean Anderson <seanga2@gmail.com> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
44f1c38a32
commit
d7bd29c912
1 changed files with 5 additions and 4 deletions
|
@ -100,7 +100,7 @@ void k3_sysctrler_load_msg_setup(struct k3_sysctrler_load_msg *fw,
|
|||
fw->buffer_size = size;
|
||||
}
|
||||
|
||||
static int k3_sysctrler_load_response(u32 *buf)
|
||||
static int k3_sysctrler_load_response(struct udevice *dev, u32 *buf)
|
||||
{
|
||||
struct k3_sysctrler_load_msg *fw;
|
||||
|
||||
|
@ -129,7 +129,8 @@ static int k3_sysctrler_load_response(u32 *buf)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int k3_sysctrler_boot_notification_response(u32 *buf)
|
||||
static int k3_sysctrler_boot_notification_response(struct udevice *dev,
|
||||
u32 *buf)
|
||||
{
|
||||
struct k3_sysctrler_boot_notification_msg *boot;
|
||||
|
||||
|
@ -193,7 +194,7 @@ static int k3_sysctrler_load(struct udevice *dev, ulong addr, ulong size)
|
|||
}
|
||||
|
||||
/* Process the response */
|
||||
ret = k3_sysctrler_load_response(msg.buf);
|
||||
ret = k3_sysctrler_load_response(dev, msg.buf);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -230,7 +231,7 @@ static int k3_sysctrler_start(struct udevice *dev)
|
|||
}
|
||||
|
||||
/* Process the response */
|
||||
ret = k3_sysctrler_boot_notification_response(msg.buf);
|
||||
ret = k3_sysctrler_boot_notification_response(dev, msg.buf);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue