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:
Michal Simek 2014-07-16 10:36:42 +02:00
parent 6cd68c811e
commit e136eaeb4d

View file

@ -238,12 +238,13 @@ 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);
else
printf ("No Device Function Table.\n");
if (desc->operations && desc->operations->info) if (desc->operations && desc->operations->info)
desc->operations->info(desc); desc->operations->info(desc);
} else
printf ("No Device Function Table.\n");
ret_val = FPGA_SUCCESS; ret_val = FPGA_SUCCESS;
} else { } else {