Merge tag 'mfd-for-linus-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[pandora-kernel.git] / arch / arm / mach-qcom / scm-boot.c
index 45cee3e..e8ff7be 100644 (file)
 /*
  * Set the cold/warm boot address for one of the CPU cores.
  */
-int scm_set_boot_addr(phys_addr_t addr, int flags)
+int scm_set_boot_addr(u32 addr, int flags)
 {
        struct {
-               unsigned int flags;
-               phys_addr_t  addr;
+               __le32 flags;
+               __le32 addr;
        } cmd;
 
-       cmd.addr = addr;
-       cmd.flags = flags;
+       cmd.addr = cpu_to_le32(addr);
+       cmd.flags = cpu_to_le32(flags);
        return scm_call(SCM_SVC_BOOT, SCM_BOOT_ADDR,
                        &cmd, sizeof(cmd), NULL, 0);
 }