[i2c] [PATCH] PowerPC 4xx I2C driver - add request/release_mem_region calls

Jean Delvare khali at linux-fr.org
Sat Oct 7 09:41:10 CEST 2006


> On Fri, Oct 06, 2006 at 03:58:43PM +0200, Jean Delvare wrote:
> > > +		ret = -ENOMEM;
> > 
> > -ENOMEM doesn't make much sense. According to LDD3, ioremap "doesn't
> > actually allocate any memory", so if it fails, it can't be due to a
> > lack of available free memory. What's wrong with -ENXIO?
> 
> Just FYI, ioremap actually does allocate memory, and lack of memory is 
> the only reason for ioremap to fail, at least on PPC.

Thanks for the information. So LDD3 would be wrong, that's sad :(

-- 
Jean Delvare



More information about the i2c mailing list