mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 12:44:23 +08: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
@ -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 New Issue
Block a user