We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0c216 commit b53e197Copy full SHA for b53e197
drivers/phy/marvell/phy-mmp3-hsic.c
@@ -41,12 +41,10 @@ static int mmp3_hsic_phy_probe(struct platform_device *pdev)
41
{
42
struct device *dev = &pdev->dev;
43
struct phy_provider *provider;
44
- struct resource *resource;
45
void __iomem *base;
46
struct phy *phy;
47
48
- resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
49
- base = devm_ioremap_resource(dev, resource);
+ base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
50
if (IS_ERR(base))
51
return PTR_ERR(base);
52
0 commit comments