diff options
-rw-r--r-- | drivers/mfd/t7l66xb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index da6383a934ac..5041d33adf0b 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -318,6 +318,9 @@ static int t7l66xb_probe(struct platform_device *dev) | |||
318 | struct resource *iomem, *rscr; | 318 | struct resource *iomem, *rscr; |
319 | int ret; | 319 | int ret; |
320 | 320 | ||
321 | if (pdata == NULL) | ||
322 | return -EINVAL; | ||
323 | |||
321 | iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); | 324 | iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); |
322 | if (!iomem) | 325 | if (!iomem) |
323 | return -EINVAL; | 326 | return -EINVAL; |