diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 17:19:49 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 13:55:53 +0400 |
commit | 8897b2bfd2af79f8349754d006a700eef126686d (patch) | |
tree | e5947b7a50f1c16d36b961eed81889575d30cb7c /drivers | |
parent | 118811b234ce11cadba00c184b74442b3bff7c26 (diff) | |
download | linux-8897b2bfd2af79f8349754d006a700eef126686d.tar.xz |
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')
-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) * the clients via intel_msic_irq_read(). */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "failed to get SRAM iomem resource\n"); - return -ENODEV; - } - msic->irq_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(msic->irq_base)) return PTR_ERR(msic->irq_base); |