From: Brian Niebuhr Date: Wed, 29 Sep 2010 07:01:54 +0000 (+0530) Subject: spi: davinci: do not use temporary buffer if no transmit data provided X-Git-Tag: v2.6.38-rc1~454^2~6^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f7141cbf4580b2f18f93940df29cf0c15e7ef5;p=pandora-kernel.git spi: davinci: do not use temporary buffer if no transmit data provided Remove usage of temporary buffer when no transmit data is provided. Instead, use the transmit register itself as the source of data. By choosing the transmit register itself as the source of data, this patch helps remove unnecessary accesses to memory when no real data is being transmitted. Signed-off-by: Brian Niebuhr Tested-By: Michael Williamson Signed-off-by: Sekhar Nori --- Reading git-diff-tree failed