projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bed8a6
)
firmware: zynqmp: Clean up zynqmp_power_probe
author
Michal Simek
<michal.simek@xilinx.com>
Thu, 10 Oct 2019 09:26:16 +0000
(11:26 +0200)
committer
Michal Simek
<michal.simek@xilinx.com>
Thu, 24 Oct 2019 11:37:01 +0000
(13:37 +0200)
Fix error debug messages to be more accurate and aligned with debug message
style in the whole file.
And do not initialize ret variable because it is initialized later on and
it is just additional step.
Fixes:
1327d1678bd2
("firmware: zynqmp: Add zynqmp-power support")
Reported-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
drivers/firmware/firmware-zynqmp.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/firmware-zynqmp.c
b/drivers/firmware/firmware-zynqmp.c
index 4911734f6c6342ea2ff6e81d6d4df8574dd52085..dea58b5581022148190ad5693aafad197f935809 100644
(file)
--- a/
drivers/firmware/firmware-zynqmp.c
+++ b/
drivers/firmware/firmware-zynqmp.c
@@
-110,19
+110,19
@@
void zynqmp_pmufw_load_config_object(const void *cfg_obj, size_t size)
static int zynqmp_power_probe(struct udevice *dev)
{
- int ret
= 0
;
+ int ret;
debug("%s, (dev=%p)\n", __func__, dev);
ret = mbox_get_by_name(dev, "tx", &zynqmp_power.tx_chan);
if (ret) {
- debug("%s
, cannot
tx mailbox\n", __func__);
+ debug("%s
: Cannot find
tx mailbox\n", __func__);
return ret;
}
ret = mbox_get_by_name(dev, "rx", &zynqmp_power.rx_chan);
if (ret) {
- debug("%s
, cannot
rx mailbox\n", __func__);
+ debug("%s
: Cannot find
rx mailbox\n", __func__);
return ret;
}