Subject: [PATCH V2 3/6] spi/spi-pl022: Don't allocate more sg than required.

From: [email-masked] (viresh kumar)
Date: Wed, 10 Aug 2011 14:35:54 +0530

On 08/10/2011 02:24 PM, Russell King - ARM Linux wrote:
> It would be far better for this to be:
> 
> 	pages = DIV_ROUND_UP(pl022->cur_transfer->len, PAGE_SIZE);
> 
> The compiler will probably optimize it to the same code anyway.

I thought of it too, but missed to update code. Thanks.

-- 
viresh