From: Takashi Iwai Date: Wed, 7 Aug 2024 13:34:21 +0000 (+0200) Subject: ALSA: control_led: Use dev_err() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=56887daf2fa9206fa0fec7cfe6428835e0b66264;p=users%2Fwilly%2Flinux.git ALSA: control_led: Use dev_err() Use the standard print API instead of open-coded printk(). Reviewed-by: Jaroslav Kysela Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/20240807133452.9424-32-tiwai@suse.de --- diff --git a/sound/core/control_led.c b/sound/core/control_led.c index 804805a95e2f..54dcfce983b8 100644 --- a/sound/core/control_led.c +++ b/sound/core/control_led.c @@ -677,7 +677,7 @@ static void snd_ctl_led_sysfs_add(struct snd_card *card) cerr: put_device(&led_card->dev); cerr2: - printk(KERN_ERR "snd_ctl_led: unable to add card%d", card->number); + dev_err(card->dev, "snd_ctl_led: unable to add card%d", card->number); } }