mfd: Use resource_size() in sm501
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 5 Jan 2010 18:55:54 +0000 (19:55 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:16:52 +0000 (22:16 +0100)
commit311e54c07e784fe63d421f724dcc597d1f82ccad
treeefcf5179a18bc9082930386a4a022974b9f54b47
parent08b8499bdd26822df16f962db88215d02e40850a
mfd: Use resource_size() in sm501

The requested memory region is smaller than the actual ioremap().
Use resource_size() to get the correct size.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sm501.c