File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,10 @@ static int max98363_io_init(struct sdw_slave *slave)
185
185
pm_runtime_get_noresume (dev );
186
186
187
187
ret = regmap_read (max98363 -> regmap , MAX98363_R21FF_REV_ID , & reg );
188
- if (!ret ) {
188
+ if (!ret )
189
189
dev_info (dev , "Revision ID: %X\n" , reg );
190
- return ret ;
191
- }
190
+ else
191
+ goto out ;
192
192
193
193
if (max98363 -> first_hw_init ) {
194
194
regcache_cache_bypass (max98363 -> regmap , false);
@@ -198,10 +198,11 @@ static int max98363_io_init(struct sdw_slave *slave)
198
198
max98363 -> first_hw_init = true;
199
199
max98363 -> hw_init = true;
200
200
201
+ out :
201
202
pm_runtime_mark_last_busy (dev );
202
203
pm_runtime_put_autosuspend (dev );
203
204
204
- return 0 ;
205
+ return ret ;
205
206
}
206
207
207
208
#define MAX98363_RATES SNDRV_PCM_RATE_8000_192000
You can’t perform that action at this time.
0 commit comments