mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
fpga: xilinx: Show fpga info if defined
Show fpga_op->info even if desc->iface_fns is not defined. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6cd68c811e
commit
e136eaeb4d
1 changed files with 5 additions and 4 deletions
|
@ -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__);
|
||||
|
|
Loading…
Reference in a new issue