Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/w1/masters: 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>

-5
-5
drivers/w1/masters/omap_hdq.c
··· 555 555 platform_set_drvdata(pdev, hdq_data); 556 556 557 557 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 558 - if (!res) { 559 - dev_dbg(&pdev->dev, "unable to get resource\n"); 560 - return -ENXIO; 561 - } 562 - 563 558 hdq_data->hdq_base = devm_ioremap_resource(dev, res); 564 559 if (IS_ERR(hdq_data->hdq_base)) 565 560 return PTR_ERR(hdq_data->hdq_base);