]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58344587c20a63916efd957c18a5aa676eee093f
tree3e7fdc76e7abfa6237517bc0f3a8317cc623a508
parent3c26e1f6fbac4f92024b810179ac8c3e63392e13
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