summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorEzequiel García <ezequiel@vanguardiasur.com.ar>2015-10-17 14:55:55 -0300
committerRichard Weinberger <richard@nod.at>2015-11-06 23:26:50 +0100
commit2a130f1aa54c2fb35abfc4d66e0239c80d054210 (patch)
tree9d350765dcbbe91ea0be08bdd4ce9d331cec6787 /drivers/mtd
parentaeeb14f763917ccf639a602cfbeee6957fd944a2 (diff)
downloadblackbird-obmc-linux-2a130f1aa54c2fb35abfc4d66e0239c80d054210.tar.gz
blackbird-obmc-linux-2a130f1aa54c2fb35abfc4d66e0239c80d054210.zip
UBI: Fastmap: Fix PEB array type
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: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/fastmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 0e6bfaf850f3..263b439e21a8 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -450,7 +450,7 @@ static void unmap_peb(struct ubi_attach_info *ai, int pnum)
* < 0 indicates an internal error.
*/
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)
{
struct ubi_vid_hdr *vh;
OpenPOWER on IntegriCloud