mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-10 03:20:49 +00:00
usb: chipidea: msm: Use devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify the code a bit. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
parent
8fbd06e592
commit
034252e37b
@ -175,7 +175,6 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev)
|
|||||||
struct platform_device *plat_ci;
|
struct platform_device *plat_ci;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
struct reset_control *reset;
|
struct reset_control *reset;
|
||||||
struct resource *res;
|
|
||||||
int ret;
|
int ret;
|
||||||
struct device_node *ulpi_node, *phy_node;
|
struct device_node *ulpi_node, *phy_node;
|
||||||
|
|
||||||
@ -209,8 +208,7 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev)
|
|||||||
if (IS_ERR(clk))
|
if (IS_ERR(clk))
|
||||||
return PTR_ERR(clk);
|
return PTR_ERR(clk);
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
ci->base = devm_platform_ioremap_resource(pdev, 1);
|
||||||
ci->base = devm_ioremap_resource(&pdev->dev, res);
|
|
||||||
if (IS_ERR(ci->base))
|
if (IS_ERR(ci->base))
|
||||||
return PTR_ERR(ci->base);
|
return PTR_ERR(ci->base);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user