You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
pwm: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9e0c1fb29a
commit
6d4294d163
@@ -123,9 +123,9 @@ static int pwm_probe(struct platform_device *pdev)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
puv3->base = devm_request_and_ioremap(&pdev->dev, r);
|
||||
if (puv3->base == NULL)
|
||||
return -EADDRNOTAVAIL;
|
||||
puv3->base = devm_ioremap_resource(&pdev->dev, r);
|
||||
if (IS_ERR(puv3->base))
|
||||
return PTR_ERR(puv3->base);
|
||||
|
||||
puv3->chip.dev = &pdev->dev;
|
||||
puv3->chip.ops = &puv3_pwm_ops;
|
||||
|
||||
Reference in New Issue
Block a user