drivers/i2c/busses: 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> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
3f97b62fab
commit
2806914f5d
|
@ -884,9 +884,6 @@ stu300_probe(struct platform_device *pdev)
|
|||
|
||||
dev->pdev = pdev;
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
if (!res)
|
||||
return -ENOENT;
|
||||
|
||||
dev->virtbase = devm_ioremap_resource(&pdev->dev, res);
|
||||
dev_dbg(&pdev->dev, "initialize bus device I2C%d on virtual "
|
||||
"base %p\n", bus_nr, dev->virtbase);
|
||||
|
|
Loading…
Reference in New Issue