Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: hdpvr-core.c: remove err() usage

err() was a very old USB-specific macro that I thought had
gone away. This patch removes it from being used in the
driver and uses dev_err() instead.

CC: Mauro Carvalho Chehab <mchehab@infradead.org>
CC: Jarod Wilson <jarod@redhat.com>
CC: Taylor Ralph <tralph@mythtv.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+2 -2
+2 -2
drivers/media/video/hdpvr/hdpvr-core.c
··· 303 303 /* allocate memory for our device state and initialize it */ 304 304 dev = kzalloc(sizeof(*dev), GFP_KERNEL); 305 305 if (!dev) { 306 - err("Out of memory"); 306 + dev_err(&interface->dev, "Out of memory\n"); 307 307 goto error; 308 308 } 309 309 ··· 311 311 312 312 /* register v4l2_device early so it can be used for printks */ 313 313 if (v4l2_device_register(&interface->dev, &dev->v4l2_dev)) { 314 - err("v4l2_device_register failed"); 314 + dev_err(&interface->dev, "v4l2_device_register failed\n"); 315 315 goto error; 316 316 } 317 317