pktcdvd: remove broken dev_t export of class devices
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 6 Dec 2008 03:38:11 +0000 (04:38 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Dec 2008 18:03:32 +0000 (10:03 -0800)
commitcba767175becadc5c4016cceb7bfdd2c7fe722f4
tree3e7fdc76e7abfa6237517bc0f3a8317cc623a508
parentcdcb30b5cca157ff73892900ac309d5ee4151c04
pktcdvd: remove broken dev_t export of class devices

The pktcdvd created class devices only export some sysfs files,
but have no char dev_t registered in the driver.

At class device creation time they copy the dev_t value of the
block device to the char device, wich will register a new char
device in the driver core and userspace, with a conflicting dev_t
value.

In many cases the class devices dev_t just points to a random
USB device. This fixes the sysfs "duplicate entry" errors.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Peter Osterlund <petero2@telia.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/pktcdvd.c