/* extra char device for bootloader */
#define AML_CHAR_BOOT_DEV (0)
#if (AML_CHAR_BOOT_DEV)
-int erase_bootloader(struct mtd_info *mtd, int boot_num)
+int erase_bootloader(struct mtd_info *mtd, uint32_t boot_num)
{
struct nand_chip *chip = mtd->priv;
struct aml_nand_chip *aml_chip = mtd_to_nand_chip(mtd);
int page, each_boot_pages, boot_copy_num;
int pages_per_block;
- int start_page, end_page;
+ uint32_t start_page, end_page;
int status;
if (aml_chip->bl_mode)
struct uboot_file_info *ufi = file->private_data;
struct mtd_info *mtd = ufi->mtd;
void __user *argp = (void __user *)arg;
- int ret = 0, erase_boot_num = 0;
+ int ret = 0;
u_long size;
+ uint32_t erase_boot_num = 0;
pr_debug("boot_ioctl\n");
}
case BOOT_ERASE_INFO32:
{
- int erase_boot_num;
+ uint32_t erase_boot_num;
if (copy_from_user(&erase_boot_num, argp, sizeof(int)))
ret = -EFAULT;