# HG changeset patch # User Janne Grunau <j@xxxxxxxxxx> # Date 1238190165 -3600 # Node ID edca57a287041646c86b404852ef9abf0ecd6c72 # Parent 602a8fff1ba466ec4fb4816d0fb0725c8650c311 cx321xx: use usb_interface.dev for v4l2_device_register From: Janne Grunau <j@xxxxxxxxxx> removes the explicitly set v4l2_device.name Priority: normal Signed-off-by: Janne Grunau <j@xxxxxxxxxx> diff -r 602a8fff1ba4 -r edca57a28704 linux/drivers/media/video/cx231xx/cx231xx-cards.c --- a/linux/drivers/media/video/cx231xx/cx231xx-cards.c Fri Mar 27 22:34:06 2009 +0100 +++ b/linux/drivers/media/video/cx231xx/cx231xx-cards.c Fri Mar 27 22:42:45 2009 +0100 @@ -683,9 +683,7 @@ */ /* Create v4l2 device */ - snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), - "%s-%03d", "cx231xx", nr); - retval = v4l2_device_register(&udev->dev, &dev->v4l2_dev); + retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); if (retval) { cx231xx_errdev("v4l2_device_register failed\n"); cx231xx_devused &= ~(1 << nr); -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html