x86: Update SPL for coreboot
[oweals/u-boot.git] / drivers / misc / rockchip-efuse.c
index a2203bf37b730cf2a9c3925dc64e8a2cd9fa52b8..2520c6a38edb3581a1490fdb8096e7dc56f16bcc 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * eFuse driver for Rockchip devices
  *
  * Copyright 2017, Theobroma Systems Design und Consulting GmbH
  * Written by Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -66,7 +65,7 @@ static int dump_efuses(cmd_tbl_t *cmdtp, int flag,
        }
 
        ret = misc_read(dev, 0, &fuses, sizeof(fuses));
-       if (ret) {
+       if (ret < 0) {
                printf("%s: misc_read failed\n", __func__);
                return 0;
        }