From: Dan Carpenter Date: Wed, 30 Jun 2010 20:12:01 +0000 (-0700) Subject: cpmac: use resource_size() X-Git-Tag: v2.6.36-rc1~571^2~398 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e307c7ad5340b226966da6e564ec7f717da3adb;p=pandora-kernel.git cpmac: use resource_size() The original code is off by one because we should start counting at zero. So the size of the resource is end - start + 1. I switched it to use resource_size() to do the calculation. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed