diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2020-01-30 09:52:39 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2020-03-20 17:04:29 +0300 |
commit | 40d763460614e6b264cf4ef8771d8b70367ecd20 (patch) | |
tree | c00567bd04bca95212af7c21f2660b91518fa80d /drivers/phy/socionext/phy-uniphier-pcie.c | |
parent | 0347f0dcbd2f0ed3335e1e1bb908534c3e05d7f2 (diff) | |
download | linux-40d763460614e6b264cf4ef8771d8b70367ecd20.tar.xz |
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-pcie.c')
-rw-r--r-- | drivers/phy/socionext/phy-uniphier-pcie.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/phy/socionext/phy-uniphier-pcie.c b/drivers/phy/socionext/phy-uniphier-pcie.c index 93ffbd2940fa..25d1d9da19db 100644 --- a/drivers/phy/socionext/phy-uniphier-pcie.c +++ b/drivers/phy/socionext/phy-uniphier-pcie.c @@ -163,7 +163,6 @@ static int uniphier_pciephy_probe(struct platform_device *pdev) struct phy_provider *phy_provider; struct device *dev = &pdev->dev; struct regmap *regmap; - struct resource *res; struct phy *phy; priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); @@ -176,8 +175,7 @@ static int uniphier_pciephy_probe(struct platform_device *pdev) priv->dev = dev; - 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); |