File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ static int rpcif_hb_probe(struct platform_device *pdev)
134
134
135
135
error = rpcif_hw_init (& hyperbus -> rpc , true);
136
136
if (error )
137
- return error ;
137
+ goto out_disable_rpm ;
138
138
139
139
hyperbus -> hbdev .map .size = hyperbus -> rpc .size ;
140
140
hyperbus -> hbdev .map .virt = hyperbus -> rpc .dirmap ;
@@ -145,8 +145,12 @@ static int rpcif_hb_probe(struct platform_device *pdev)
145
145
hyperbus -> hbdev .np = of_get_next_child (pdev -> dev .parent -> of_node , NULL );
146
146
error = hyperbus_register_device (& hyperbus -> hbdev );
147
147
if (error )
148
- rpcif_disable_rpm (& hyperbus -> rpc );
148
+ goto out_disable_rpm ;
149
+
150
+ return 0 ;
149
151
152
+ out_disable_rpm :
153
+ rpcif_disable_rpm (& hyperbus -> rpc );
150
154
return error ;
151
155
}
152
156
You can’t perform that action at this time.
0 commit comments