diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/mfd-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 8ffbb7a85a7e..7dd76bceaae8 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c | |||
@@ -48,7 +48,7 @@ static int mfd_add_device(struct device *parent, int id, | |||
48 | res[r].flags = cell->resources[r].flags; | 48 | res[r].flags = cell->resources[r].flags; |
49 | 49 | ||
50 | /* Find out base to use */ | 50 | /* Find out base to use */ |
51 | if (cell->resources[r].flags & IORESOURCE_MEM) { | 51 | if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { |
52 | res[r].parent = mem_base; | 52 | res[r].parent = mem_base; |
53 | res[r].start = mem_base->start + | 53 | res[r].start = mem_base->start + |
54 | cell->resources[r].start; | 54 | cell->resources[r].start; |