[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iounmap

On Tue, 17 Sep 2002, Ronny L Nilsson wrote:
> By the way, while trying to use this function (iounmap) in my driver, I 
> get an error. Any ideas howcome?
> ioremap(SRAM_BASE, size);
> iounmap((void*)SRAM_BASE);
> =>  Trying to vfree() nonexistent vm area (88000000)

Well, you should unmap the area returned by ioremap, not the physical area.

That is

a = ioremap(SRAM_BASE, size);