File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev)
100
100
{
101
101
struct device * dev = & pdev -> dev ;
102
102
struct mtk_hdmi_phy * hdmi_phy ;
103
- struct resource * mem ;
104
103
struct clk * ref_clk ;
105
104
const char * ref_clk_name ;
106
105
struct clk_init_data clk_init = {
@@ -116,11 +115,9 @@ static int mtk_hdmi_phy_probe(struct platform_device *pdev)
116
115
if (!hdmi_phy )
117
116
return - ENOMEM ;
118
117
119
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
120
- hdmi_phy -> regs = devm_ioremap_resource (dev , mem );
121
- if (IS_ERR (hdmi_phy -> regs )) {
118
+ hdmi_phy -> regs = devm_platform_ioremap_resource (pdev , 0 );
119
+ if (IS_ERR (hdmi_phy -> regs ))
122
120
return PTR_ERR (hdmi_phy -> regs );
123
- }
124
121
125
122
ref_clk = devm_clk_get (dev , "pll_ref" );
126
123
if (IS_ERR (ref_clk )) {
You can’t perform that action at this time.
0 commit comments