aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw.h
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@st.com> 2011-08-10 17:12:11 +0530
committerGravatar Grant Likely <grant.likely@secretlab.ca> 2011-09-21 09:41:47 -0600
commitb181565ee6a0f894bd6a134b9e5bed2966bdf9b3 (patch)
tree729ac09ecdf3fd9b16f98b5dc92b46f6f8a1b45d /drivers/spi/spi-dw.h
parentspi/spi-pl022: Use GFP_ATOMIC for allocation from tasklet (diff)
downloadlinux-b181565ee6a0f894bd6a134b9e5bed2966bdf9b3.tar.gz
linux-b181565ee6a0f894bd6a134b9e5bed2966bdf9b3.tar.bz2
linux-b181565ee6a0f894bd6a134b9e5bed2966bdf9b3.zip
spi/spi-pl022: Don't allocate more sg than required.
In routine configure_dma(), if transfer->len = PAGE_SIZE, then pages is one more than required. While leads to one more sg getting allocated. This is wrong. Correct this to allocate correct number of sg. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-dw.h')
0 files changed, 0 insertions, 0 deletions