mfd: Check for mem_base when building IORESOURCE_MEM resources
commitf03cfcbc843ae6854c69dbc771762b83b3bea15f
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 26 Mar 2010 00:09:04 +0000 (26 01:09 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 May 2010 23:37:31 +0000 (28 01:37 +0200)
treed65ef52e0a23ebeb6875738695cf7b0196735f09
parent5f7df57eeca93fc931b32e7723fe8f964aaa63df
mfd: Check for mem_base when building IORESOURCE_MEM resources

If mem_base is NULL, then we fall back to the default case, just copying the
original resource.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mfd-core.c