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 @@ -130,7 +130,6 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev)
130
130
{
131
131
struct device * dev = & pdev -> dev ;
132
132
struct mtk_mipi_tx * mipi_tx ;
133
- struct resource * mem ;
134
133
const char * ref_clk_name ;
135
134
struct clk * ref_clk ;
136
135
struct clk_init_data clk_init = {
@@ -148,11 +147,9 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev)
148
147
149
148
mipi_tx -> driver_data = of_device_get_match_data (dev );
150
149
151
- mem = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
152
- mipi_tx -> regs = devm_ioremap_resource (dev , mem );
153
- if (IS_ERR (mipi_tx -> regs )) {
150
+ mipi_tx -> regs = devm_platform_ioremap_resource (pdev , 0 );
151
+ if (IS_ERR (mipi_tx -> regs ))
154
152
return PTR_ERR (mipi_tx -> regs );
155
- }
156
153
157
154
ref_clk = devm_clk_get (dev , NULL );
158
155
if (IS_ERR (ref_clk )) {
You can’t perform that action at this time.
0 commit comments