From: Steve Glendinning Date: Fri, 30 Nov 2012 05:55:51 +0000 (+0000) Subject: smsc95xx: fix smsc_crc return type X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=068bb1a75a94eacfaaacf3b0ecf4feb349fa8e13;p=pandora-kernel.git smsc95xx: fix smsc_crc return type This patch fixes a bug introduced in bbd9f9e which could prevent some wakeups from working correctly if multiple wol options were selected. This helper function calculates a 16-bit crc and shifts it into either the high or low 16 bits of a u32 so the caller can or it directly into place. The function previously had a u16 return type so would always have returned zero when filter was odd. Signed-off-by: Steve Glendinning Reported-by: Bjorn Mork Cc: Joe Perches Signed-off-by: David S. Miller --- Reading git-diff-tree failed