]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/pmic.c
karo: tx6: return -EINVAL from tx6_pmic_init() if no PMIC is configured
[karo-tx-uboot.git] / board / karo / tx6 / pmic.c
index bf319902017d8e3586b03da7f6fb13a64dd41358..2743dadd3232a1bd341bfeca2a33fe8b213b81fc 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <errno.h>
 #include <i2c.h>
 
 #include "pmic.h"
@@ -37,7 +38,7 @@ static struct {
 
 int tx6_pmic_init(void)
 {
-       int ret;
+       int ret = -ENODEV;
        int i;
 
        for (i = 0; i < ARRAY_SIZE(i2c_addrs); i++) {