]> git.sur5r.net Git - u-boot/commitdiff
UBI: Fastmap: Fix PEB array type
authorHeiko Schocher <hs@denx.de>
Thu, 22 Oct 2015 04:19:22 +0000 (06:19 +0200)
committerHeiko Schocher <hs@denx.de>
Mon, 26 Oct 2015 08:22:50 +0000 (09:22 +0100)
The PEB array is an array of __be32, so let's fix the
scan_pool() prototype accordingly.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/mtd/ubi/fastmap.c

index 48ba98a6b55b69b31c660a1e5e1b2c0084418df9..f824ec8b29363aa7c99832901df788dbdce6aa93 100644 (file)
@@ -453,11 +453,11 @@ static void unmap_peb(struct ubi_attach_info *ai, int pnum)
  */
 #ifndef __UBOOT__
 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai,
-                    int *pebs, int pool_size, unsigned long long *max_sqnum,
+                    __be32 *pebs, int pool_size, unsigned long long *max_sqnum,
                     struct list_head *free)
 #else
 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai,
-                    int *pebs, int pool_size, unsigned long long *max_sqnum,
+                    __be32 *pebs, int pool_size, unsigned long long *max_sqnum,
                     struct list_head *free)
 #endif
 {