mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 13:58:46 +00:00
phy: rockchip: convert to devm_platform_ioremap_resource
Use devm_platform_ioremap_resource to simplify code Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1604642930-29019-13-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
0b5604affb
commit
6824ebc047
@ -1144,7 +1144,6 @@ static int inno_hdmi_phy_probe(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct inno_hdmi_phy *inno;
|
struct inno_hdmi_phy *inno;
|
||||||
struct phy_provider *phy_provider;
|
struct phy_provider *phy_provider;
|
||||||
struct resource *res;
|
|
||||||
void __iomem *regs;
|
void __iomem *regs;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -1158,8 +1157,7 @@ static int inno_hdmi_phy_probe(struct platform_device *pdev)
|
|||||||
if (!inno->plat_data || !inno->plat_data->ops)
|
if (!inno->plat_data || !inno->plat_data->ops)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
regs = devm_platform_ioremap_resource(pdev, 0);
|
||||||
regs = devm_ioremap_resource(inno->dev, res);
|
|
||||||
if (IS_ERR(regs))
|
if (IS_ERR(regs))
|
||||||
return PTR_ERR(regs);
|
return PTR_ERR(regs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user