diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-26 19:38:08 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-27 10:24:10 +0200 |
commit | edc81ba4accc86cbec7e1f2fc445b2f0ebd5dfe9 (patch) | |
tree | 2c1ca78d70274a48cb74cbe269a27aa4abe44232 /drivers | |
parent | 3525df13ae56ed81ffd227426273ecfa42237596 (diff) | |
download | linux-stable-edc81ba4accc86cbec7e1f2fc445b2f0ebd5dfe9.tar.gz linux-stable-edc81ba4accc86cbec7e1f2fc445b2f0ebd5dfe9.tar.bz2 linux-stable-edc81ba4accc86cbec7e1f2fc445b2f0ebd5dfe9.zip |
usb: oxu210hp-hcd: Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230726113816.888-22-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/oxu210hp-hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 50c1ccabb0f5..d467472f9d3c 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c @@ -4230,8 +4230,7 @@ static int oxu_drv_probe(struct platform_device *pdev) return irq; dev_dbg(&pdev->dev, "IRQ resource %d\n", irq); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) { ret = PTR_ERR(base); goto error; |