]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
remoteproc: qcom_q6v5_pil: Fix 64 bit
authorAndy Gross <agross@codeaurora.org>
Fri, 3 Jul 2015 23:48:06 +0000 (18:48 -0500)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:10 +0000 (09:55 +0000)
This patch fixes some 64 bit issues with compilation.

Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/remoteproc/qcom_q6v5_pil.c

index 975df485b90f5c12ccba15f6c2ece5bedf71d127..4d63a84db588164536cbac930ea7eeaaf3838b83 100644 (file)
@@ -450,7 +450,7 @@ static int qproc_verify_segments(struct qproc *qproc, const struct firmware *fw)
        struct elf32_phdr *phdr;
        const u8 *elf_data = fw->data;
        unsigned long timeout;
-       u32 min_addr = (phys_addr_t)ULLONG_MAX;
+       phys_addr_t min_addr = (phys_addr_t)ULLONG_MAX;
        u32 size = 0;
        s32 val;
        int ret;
@@ -470,7 +470,7 @@ static int qproc_verify_segments(struct qproc *qproc, const struct firmware *fw)
 
 #if 1
        for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
-               u32 da = phdr->p_paddr;
+               phys_addr_t da = phdr->p_paddr;
                u32 memsz = phdr->p_memsz;
 
                if (phdr->p_type != PT_LOAD)