aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files/drivers
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2018-02-12 11:40:38 +0100
committerJonas Gorski <jonas.gorski@gmail.com>2018-02-12 11:45:33 +0100
commit09bc44454f0b26d9f1a5fee991ed309ef10e81f6 (patch)
tree533b0ad94f0cc1f0c2f4ff80f1a5b51847791479 /target/linux/ar7/files/drivers
parenta464fba7eb0c5a0d8d6cb2fb9ae8fe00d67d8e2b (diff)
downloadupstream-09bc44454f0b26d9f1a5fee991ed309ef10e81f6.tar.gz
upstream-09bc44454f0b26d9f1a5fee991ed309ef10e81f6.tar.bz2
upstream-09bc44454f0b26d9f1a5fee991ed309ef10e81f6.zip
ar7: fix ac49x compilation with 4.9
This will introduce a warning on 3.18, but fixes an error when compiling for 4.9. Fixes: cf9e0a59aabd ("ar7: add kernel 4.9 support") Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/ar7/files/drivers')
-rw-r--r--target/linux/ar7/files/drivers/mtd/ac49xpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/mtd/ac49xpart.c b/target/linux/ar7/files/drivers/mtd/ac49xpart.c
index 7ac4a817fc..4f8a9c1b84 100644
--- a/target/linux/ar7/files/drivers/mtd/ac49xpart.c
+++ b/target/linux/ar7/files/drivers/mtd/ac49xpart.c
@@ -123,7 +123,7 @@ void gen_partname(unsigned int type,
}
static int create_mtd_partitions(struct mtd_info *master,
- struct mtd_partition **pparts,
+ const struct mtd_partition **pparts,
struct mtd_part_parser_data *data)
{
unsigned int envpartnum = 0, linuxpartnum = 0;