[rdc] include linux/magic.h instead of hardcoding the squashfs magic number
[openwrt.git] / target / linux / rdc / files / drivers / mtd / maps / rdc3210.c
index e04bb99..2c536ce 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/autoconf.h>
 #include <linux/sched.h>
-#include <linux/squashfs_fs.h>
+#include <linux/magic.h>
 
 static struct mtd_info         *rdc3210_mtd;
 
@@ -197,7 +197,7 @@ static int erase_write (struct mtd_info *mtd, unsigned long pos,
 static int __init init_rdc3210_map(void)
 {
        rdc3210_map.phys = -rdc3210_map.size;
-               printk(KERN_NOTICE "flash device: %x at %x\n", rdc3210_map.size, rdc3210_map.phys);
+               printk(KERN_NOTICE "flash device: %lx at %x\n", rdc3210_map.size, rdc3210_map.phys);
 
 #if CONFIG_MTD_RDC3210_SIZE == 0x800000
        simple_map_init(&rdc3210_map);
This page took 0.027313 seconds and 4 git commands to generate.