diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:49 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 05:55:53 -0400 |
commit | 8897b2bfd2af79f8349754d006a700eef126686d (patch) | |
tree | e5947b7a50f1c16d36b961eed81889575d30cb7c /drivers/mfd | |
parent | 118811b234ce11cadba00c184b74442b3bff7c26 (diff) |
drivers/mfd: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/intel_msic.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mfd/intel_msic.c b/drivers/mfd/intel_msic.c index 5be3b5e13855..d8d5137f9717 100644 --- a/drivers/mfd/intel_msic.c +++ b/drivers/mfd/intel_msic.c | |||
@@ -414,11 +414,6 @@ static int intel_msic_probe(struct platform_device *pdev) | |||
414 | * the clients via intel_msic_irq_read(). | 414 | * the clients via intel_msic_irq_read(). |
415 | */ | 415 | */ |
416 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 416 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
417 | if (!res) { | ||
418 | dev_err(&pdev->dev, "failed to get SRAM iomem resource\n"); | ||
419 | return -ENODEV; | ||
420 | } | ||
421 | |||
422 | msic->irq_base = devm_ioremap_resource(&pdev->dev, res); | 417 | msic->irq_base = devm_ioremap_resource(&pdev->dev, res); |
423 | if (IS_ERR(msic->irq_base)) | 418 | if (IS_ERR(msic->irq_base)) |
424 | return PTR_ERR(msic->irq_base); | 419 | return PTR_ERR(msic->irq_base); |