]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/update.c
Prepare for multiple bootcount drivers
[people/ms/u-boot.git] / common / update.c
index 974f4655e7ef1d492b9c589cdfe02738a9fd1134..ef61790f4bc83e190ed5dc10ad4161bd71ba55cf 100644 (file)
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <dfu.h>
 #include <errno.h>
+#include <mtd/cfi_flash.h>
 
 /* env variable holding the location of the update file */
 #define UPDATE_FILE_ENV                "updatefile"
@@ -242,7 +243,7 @@ int update_tftp(ulong addr, char *interface, char *devstring)
        } else if (interface && devstring) {
                update_tftp_dfu = true;
        } else {
-               error("Interface: %s and devstring: %s not supported!\n",
+               pr_err("Interface: %s and devstring: %s not supported!\n",
                      interface, devstring);
                return -EINVAL;
        }