ALSA: control_led: Use dev_err()

Use the standard print API instead of open-coded printk().

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-32-tiwai@suse.de
This commit is contained in:
Takashi Iwai 2024-08-07 15:34:21 +02:00
parent b8986876e7
commit 56887daf2f

View File

@ -677,7 +677,7 @@ static void snd_ctl_led_sysfs_add(struct snd_card *card)
cerr: cerr:
put_device(&led_card->dev); put_device(&led_card->dev);
cerr2: 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);
} }
} }