Skip to contentSkip to conversation

use print_dev_t() for sysfs dev file in videodev.c

PATCH New Gerd Knorr 1 participant 1 message Sep 29, 2003

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 use print_dev_t() for sysfs dev file in videodev.c

Trivial one-liner, $subject says all.

please apply,

Gerd

media/video/videodev.c renamed from media/video/videodev.c.sysfs +1 -1
@@ -52,7 +52,7 @@
 {
 	struct video_device *vfd = container_of(cd, struct video_device, class_dev);
 	dev_t dev = MKDEV(VIDEO_MAJOR, vfd->minor);
-	return sprintf(buf,"%04x\n",old_encode_dev(dev));
+	return print_dev_t(buf,dev);
 }
 
 static CLASS_DEVICE_ATTR(name, S_IRUGO, show_name, NULL);