mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
staging: bcm2835-audio: replace printk(KERN_ERR...) with dev_err(...)
Use dev_err(... in place of printk(KERN_ERR ... Problem found by checkpatch Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1f52aaf853
commit
637e078eaf
1 changed files with 2 additions and 4 deletions
|
@ -139,10 +139,8 @@ static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol,
|
|||
}
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
if (bcm2835_audio_set_ctls(chip))
|
||||
printk(KERN_ERR "Failed to set ALSA controls..\n");
|
||||
}
|
||||
if (changed && bcm2835_audio_set_ctls(chip))
|
||||
dev_err(chip->card->dev, "Failed to set ALSA controls..\n");
|
||||
|
||||
unlock:
|
||||
mutex_unlock(&chip->audio_mutex);
|
||||
|
|
Loading…
Reference in a new issue