summaryrefslogtreecommitdiff
path: root/drivers/phy/socionext/phy-uniphier-usb3hs.c
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2020-01-30 15:52:39 +0900
committerKishon Vijay Abraham I <kishon@ti.com>2020-03-20 19:34:29 +0530
commit40d763460614e6b264cf4ef8771d8b70367ecd20 (patch)
treec00567bd04bca95212af7c21f2660b91518fa80d /drivers/phy/socionext/phy-uniphier-usb3hs.c
parent0347f0dcbd2f0ed3335e1e1bb908534c3e05d7f2 (diff)
phy: socionext: Use devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify the code. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/socionext/phy-uniphier-usb3hs.c')
-rw-r--r--drivers/phy/socionext/phy-uniphier-usb3hs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/socionext/phy-uniphier-usb3hs.c b/drivers/phy/socionext/phy-uniphier-usb3hs.c
index 50f379fc4e06..1d3f9e850c5d 100644
--- a/drivers/phy/socionext/phy-uniphier-usb3hs.c
+++ b/drivers/phy/socionext/phy-uniphier-usb3hs.c
@@ -309,7 +309,6 @@ static int uniphier_u3hsphy_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct uniphier_u3hsphy_priv *priv;
struct phy_provider *phy_provider;
- struct resource *res;
struct phy *phy;
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
@@ -322,8 +321,7 @@ static int uniphier_u3hsphy_probe(struct platform_device *pdev)
priv->data->nparams > MAX_PHY_PARAMS))
return -EINVAL;
- 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);