summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-07-16 10:36:42 +0200
committerMichal Simek <michal.simek@xilinx.com>2015-01-21 10:25:43 +0100
commite136eaeb4d3e9a8557eaad26f99c0f2e3db172ac (patch)
tree400a1c91574054d93bf83f5909e17640c53fad3d /drivers
parent6cd68c811ecb145d4258ce6be99dba3e507b294f (diff)
downloadtalos-obmc-uboot-e136eaeb4d3e9a8557eaad26f99c0f2e3db172ac.tar.gz
talos-obmc-uboot-e136eaeb4d3e9a8557eaad26f99c0f2e3db172ac.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/fpga/xilinx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c
index 9c95148b25..c765a74a25 100644
--- a/drivers/fpga/xilinx.c
+++ b/drivers/fpga/xilinx.c
@@ -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__);
OpenPOWER on IntegriCloud