From: Michal Simek Date: Wed, 16 Jul 2014 08:36:42 +0000 (+0200) Subject: fpga: xilinx: Show fpga info if defined X-Git-Tag: v2015.04-rc1~66^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e136eaeb4d3e9a8557eaad26f99c0f2e3db172ac;p=u-boot fpga: xilinx: Show fpga info if defined Show fpga_op->info even if desc->iface_fns is not defined. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- 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__);