mtd: sf: Make sf_mtd.c more robust
[platform/kernel/u-boot.git] / drivers / pci / pci_rom.c
index 7f46194..eaacd40 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2014 Google, Inc
  *
@@ -19,8 +20,6 @@
  * David Mosberger-Tang
  *
  * Copyright 1997 -- 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-
- * SPDX-License-Identifier:    GPL-2.0
  */
 
 #include <common.h>
@@ -248,7 +247,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void),
        }
 
        if (!board_should_load_oprom(dev))
-               return -ENXIO;
+               return log_msg_ret("Should not load OPROM", -ENXIO);
 
        ret = pci_rom_probe(dev, &rom);
        if (ret)
@@ -329,7 +328,7 @@ int vbe_setup_video_priv(struct vesa_mode_info *vesa,
                         struct video_uc_platdata *plat)
 {
        if (!vesa->x_resolution)
-               return -ENXIO;
+               return log_msg_ret("No x resolution", -ENXIO);
        uc_priv->xsize = vesa->x_resolution;
        uc_priv->ysize = vesa->y_resolution;
        switch (vesa->bits_per_pixel) {