]> git.sur5r.net Git - u-boot/blobdiff - drivers/misc/swap_case.c
spi: omap3: fix claim/release bus within DM
[u-boot] / drivers / misc / swap_case.c
index f6028ba33280c630a56fae45d39350d44397aeaa..b777404c0977d5e9be61bbe91ed8597f898eca74 100644 (file)
@@ -1,14 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * PCI emulation device which swaps the case of text
  *
  * Copyright (c) 2014 Google, Inc
  * Written by Simon Glass <sjg@chromium.org>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <dm.h>
+#include <errno.h>
 #include <pci.h>
 #include <asm/test.h>
 #include <linux/ctype.h>
@@ -21,7 +21,7 @@
  */
 struct swap_case_platdata {
        u16 command;
-       u32 bar[2];
+       u32 bar[6];
 };
 
 #define offset_to_barnum(offset)       \