From: Alexey Klimov Date: Sun, 28 Dec 2008 01:31:52 +0000 (-0300) Subject: V4L/DVB (10059): dsbr100: dev_err instead of dev_warn X-Git-Tag: MMI-PSA29.97-13-9~30449^2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e1ca8491d046d1f01de105add7f2f8f477869ec;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (10059): dsbr100: dev_err instead of dev_warn We should use dev_err (not dev_warn) if video_register_device fails. Signed-off-by: Alexey Klimov Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index e0d7485226cd..5de5def9c166 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c @@ -713,7 +713,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, video_set_drvdata(&radio->videodev, radio); retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr); if (retval < 0) { - dev_warn(&intf->dev, "Could not register video device\n"); + dev_err(&intf->dev, "couldn't register video device\n"); kfree(radio->transfer_buffer); kfree(radio); return -EIO;