diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-08-07 09:14:16 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-08-08 10:22:59 +0200 |
commit | e96a9261043243fcfaf8934a44aa6ab70cea4365 (patch) | |
tree | 094f241f44f4d11d47f685daab836e742f5c7daa /drivers/clk/renesas/rcar-usb2-clock-sel.c | |
parent | Linus 5.3-rc1 (diff) | |
download | linux-e96a9261043243fcfaf8934a44aa6ab70cea4365.tar.xz linux-e96a9261043243fcfaf8934a44aa6ab70cea4365.zip |
clk: renesas: rcar-usb2-clock-sel: Use devm_platform_ioremap_resource() helper
Use the devm_platform_ioremap_resource() helper instead of open-coding
the same operation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Diffstat (limited to 'drivers/clk/renesas/rcar-usb2-clock-sel.c')
-rw-r--r-- | drivers/clk/renesas/rcar-usb2-clock-sel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/renesas/rcar-usb2-clock-sel.c b/drivers/clk/renesas/rcar-usb2-clock-sel.c index cc90b11a9c25..b97f5f9326cf 100644 --- a/drivers/clk/renesas/rcar-usb2-clock-sel.c +++ b/drivers/clk/renesas/rcar-usb2-clock-sel.c @@ -117,7 +117,6 @@ static int rcar_usb2_clock_sel_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct usb2_clock_sel_priv *priv; - struct resource *res; struct clk *clk; struct clk_init_data init; @@ -125,8 +124,7 @@ static int rcar_usb2_clock_sel_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); |