kernel/sound/drivers/pcsp/pcsp.c
.. .. @@ -1,3 +1,4 @@ 1 +// SPDX-License-Identifier: GPL-2.0-only1 2 /* 2 3 * PC-Speaker driver for Linux 3 4 * .. .. @@ -42,7 +43,7 @@ 42 43 43 44 static int snd_pcsp_create(struct snd_card *card) 44 45 { 45 - static struct snd_device_ops ops = { };46 + static const struct snd_device_ops ops = { };46 47 unsigned int resolution = hrtimer_resolution; 47 48 int err, div, min_div, order; 48 49 .. .. @@ -197,7 +198,6 @@ 197 198 { 198 199 struct snd_pcsp *chip = dev_get_drvdata(dev); 199 200 pcsp_stop_beep(chip); 200 - snd_pcm_suspend_all(chip->pcm);201 201 return 0; 202 202 } 203 203