File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -319,13 +319,11 @@ static int wm97xx_ac97_probe(struct ac97_codec_device *adev)
319
319
return ret ;
320
320
}
321
321
322
- static int wm97xx_ac97_remove (struct ac97_codec_device * adev )
322
+ static void wm97xx_ac97_remove (struct ac97_codec_device * adev )
323
323
{
324
324
struct wm97xx_priv * wm97xx = ac97_get_drvdata (adev );
325
325
326
326
snd_ac97_compat_release (wm97xx -> ac97 );
327
-
328
- return 0 ;
329
327
}
330
328
331
329
static const struct ac97_id wm97xx_ac97_ids [] = {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ struct ac97_codec_device {
63
63
struct ac97_codec_driver {
64
64
struct device_driver driver ;
65
65
int (* probe )(struct ac97_codec_device * );
66
- int (* remove )(struct ac97_codec_device * );
66
+ void (* remove )(struct ac97_codec_device * dev );
67
67
void (* shutdown )(struct ac97_codec_device * );
68
68
const struct ac97_id * id_table ;
69
69
};
Original file line number Diff line number Diff line change @@ -524,10 +524,9 @@ static void ac97_bus_remove(struct device *dev)
524
524
if (ret < 0 )
525
525
return ;
526
526
527
- ret = adrv -> remove (adev );
527
+ adrv -> remove (adev );
528
528
pm_runtime_put_noidle (dev );
529
- if (ret == 0 )
530
- ac97_put_disable_clk (adev );
529
+ ac97_put_disable_clk (adev );
531
530
532
531
pm_runtime_disable (dev );
533
532
}
You can’t perform that action at this time.
0 commit comments