fpga: xilinx: Show fpga info if defined
authorMichal Simek <michal.simek@xilinx.com>
Wed, 16 Jul 2014 08:36:42 +0000 (10:36 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 21 Jan 2015 09:25:43 +0000 (10:25 +0100)
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>
drivers/fpga/xilinx.c

index 9c95148b25c1c7c0fde560f173f5376f7f41ce4a..c765a74a25e0f17895b8010cfcbb646f735a5093 100644 (file)
@@ -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__);