From: Tobias Klauser Date: Mon, 28 Apr 2014 21:23:01 +0000 (+0200) Subject: Altera TSE: Fix DMA secriptor length initialization X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b4448815ee746f878ca4c6b8fffa23441f6d16c;p=pandora-kernel.git Altera TSE: Fix DMA secriptor length initialization sgdma_descrip is a function name as well as the name of a struct. In sgdma_initialize(), we should initialize the descriptor length field with the actual length of a descriptor not with the size of the function. In order to prevent such things from happening in the future, rename the function to sgdma_setup_descrip(). Found by sparse which yields the following warning: drivers/net/ethernet/altera/altera_sgdma.c:74:30: warning: expression using sizeof on a function Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller --- Reading git-diff-tree failed