Commit e136eaeb authored by Michal Simek's avatar Michal Simek

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
......@@ -238,13 +238,14 @@ int xilinx_info(xilinx_desc *desc)
if (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);
if (desc->operations && desc->operations->info)
desc->operations->info(desc);
} else
else
printf ("No Device Function Table.\n");
if (desc->operations && desc->operations->info)
desc->operations->info(desc);
ret_val = FPGA_SUCCESS;
} else {
printf ("%s: Invalid device descriptor\n", __FUNCTION__);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment