Commit f5020bfe authored by Paul Mundt's avatar Paul Mundt Committed by Tony Lindgren

[PATCH] ARM: OMAP: Trivial warning fixups

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: default avatarPaul Mundt <paul.mundt@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 53697ac9
...@@ -142,7 +142,7 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, ...@@ -142,7 +142,7 @@ __ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size,
return NULL; return NULL;
addr = (unsigned long)area->addr; addr = (unsigned long)area->addr;
if (remap_area_pages(addr, pfn, size, flags)) { if (remap_area_pages(addr, pfn, size, flags)) {
vfree(addr); vfree((void *)addr);
return NULL; return NULL;
} }
return (void __iomem *) (offset + (char *)addr); return (void __iomem *) (offset + (char *)addr);
......
...@@ -678,7 +678,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data) ...@@ -678,7 +678,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data)
int dst_port = 0; int dst_port = 0;
int sync_dev = 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; frame = 1 << data->blksz_bits;
count = (u32)sg_dma_len(sg); count = (u32)sg_dma_len(sg);
...@@ -1306,7 +1306,8 @@ static int __init mmc_omap_probe(struct platform_device *pdev) ...@@ -1306,7 +1306,8 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
} }
if (omap_has_menelaus()) if (omap_has_menelaus())
menelaus_mmc_register(mmc_omap_switch_callback, &host); menelaus_mmc_register(mmc_omap_switch_callback,
(unsigned long)&host);
no_switch: no_switch:
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment