[PATCH v3 1/2] PRUSS UIO driver support

Sergei Shtylyov sshtylyov at mvista.com
Wed Feb 23 15:49:49 EST 2011


Hello.

On 23-02-2011 23:25, Thomas Gleixner wrote:

>> +	prussio_virt_addr =
>> +	    ioremap(regs_prussio->start,
>> +		    regs_prussio->end - regs_prussio->start + 1);

> Either make those variable names shorter or do:

>         len = regs_prussio->end - regs_prussio->start + 1;

    Or even:

	len = resource_size(regs_prussio);

>         prussio_virt_addr = ioremap(regs_prussio->start, len);

WBR, Sergei



More information about the linux-arm-kernel mailing list