Bogus type for vfree() in __ioremap_pfn() (should probably use
remove_vm_area() anyways), and some type mismatches in the OMAP MMC
driver.
Signed-off-by: Paul Mundt <paul.mundt@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
return NULL;
addr = (unsigned long)area->addr;
if (remap_area_pages(addr, pfn, size, flags)) {
- vfree(addr);
+ vfree((void *)addr);
return NULL;
}
return (void __iomem *) (offset + (char *)addr);
int dst_port = 0;
int sync_dev = 0;
- data_addr = io_v2p((void __force *) host->base) + OMAP_MMC_REG_DATA;
+ data_addr = (unsigned long)io_v2p((void __force *) host->base) + OMAP_MMC_REG_DATA;
frame = 1 << data->blksz_bits;
count = (u32)sg_dma_len(sg);
}
if (omap_has_menelaus())
- menelaus_mmc_register(mmc_omap_switch_callback, &host);
+ menelaus_mmc_register(mmc_omap_switch_callback,
+ (unsigned long)&host);
no_switch:
return 0;