Re: serial drivers: ioremap() vs. devm_*

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

 



On Thu, Mar 14, 2019 at 08:28:15AM +0100, Enrico Weigelt, metux IT consult wrote:
> Hi folks,
> 
> I've seen several drivers do ioremap() w/o calling iounmap().
> Shouldn't they always clean up ? (maybe it's forgotten, since
> these drivers usually seem to be compiled-in).

They should clean up when they are done with the memory.  Are they ever
done with it?

> Can I replace it w/ dev_ioremap() or could this somehow conflict
> w/ earlycon ?

What does devm_* have to do with earlycon?

thanks,

greg k-h



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux