File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -186,16 +186,16 @@ static int eud_probe(struct platform_device *pdev)
186
186
187
187
chip -> dev = & pdev -> dev ;
188
188
189
- ret = devm_add_action_or_reset (chip -> dev , eud_role_switch_release , chip );
190
- if (ret )
191
- return dev_err_probe (chip -> dev , ret ,
192
- "failed to add role switch release action\n" );
193
-
194
189
chip -> role_sw = usb_role_switch_get (& pdev -> dev );
195
190
if (IS_ERR (chip -> role_sw ))
196
191
return dev_err_probe (chip -> dev , PTR_ERR (chip -> role_sw ),
197
192
"failed to get role switch\n" );
198
193
194
+ ret = devm_add_action_or_reset (chip -> dev , eud_role_switch_release , chip );
195
+ if (ret )
196
+ return dev_err_probe (chip -> dev , ret ,
197
+ "failed to add role switch release action\n" );
198
+
199
199
chip -> base = devm_platform_ioremap_resource (pdev , 0 );
200
200
if (IS_ERR (chip -> base ))
201
201
return PTR_ERR (chip -> base );
You can’t perform that action at this time.
0 commit comments