Skip to content
Snippets Groups Projects
Commit e136eaeb authored by Michal Simek's avatar Michal Simek
Browse files

fpga: xilinx: Show fpga info if defined


Show fpga_op->info even if desc->iface_fns is not defined.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 6cd68c81
No related branches found
No related tags found
No related merge requests found
...@@ -238,13 +238,14 @@ int xilinx_info(xilinx_desc *desc) ...@@ -238,13 +238,14 @@ int xilinx_info(xilinx_desc *desc)
if (desc->name) if (desc->name)
printf("Device name: \t%s\n", desc->name); printf("Device name: \t%s\n", desc->name);
if (desc->iface_fns) { if (desc->iface_fns)
printf ("Device Function Table @ 0x%p\n", desc->iface_fns); printf ("Device Function Table @ 0x%p\n", desc->iface_fns);
if (desc->operations && desc->operations->info) else
desc->operations->info(desc);
} else
printf ("No Device Function Table.\n"); printf ("No Device Function Table.\n");
if (desc->operations && desc->operations->info)
desc->operations->info(desc);
ret_val = FPGA_SUCCESS; ret_val = FPGA_SUCCESS;
} else { } else {
printf ("%s: Invalid device descriptor\n", __FUNCTION__); printf ("%s: Invalid device descriptor\n", __FUNCTION__);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment