Skip to content

Commit 8897b2b

Browse files
author
Wolfram Sang
committed
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>
1 parent 118811b commit 8897b2b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/mfd/intel_msic.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ static int intel_msic_probe(struct platform_device *pdev)
414414
* the clients via intel_msic_irq_read().
415415
*/
416416
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-
422417
msic->irq_base = devm_ioremap_resource(&pdev->dev, res);
423418
if (IS_ERR(msic->irq_base))
424419
return PTR_ERR(msic->irq_base);

0 commit comments

Comments
 (0)