Files
linux/drivers/block
Thadeu Lima de Souza Cascardo 2c7f87e9dc pktcdvd: removing device does not remove its sysfs dir
commit ca0bf64d99 upstream.

This is the counterpart to cba767175b
("pktcdvd: remove broken dev_t export of class devices").  Device is not
registered using dev_t, so it should not be destroyed using device_destroy
which looks up the device by dev_t.  This will fail and adding the device
again will fail with the "duplicate name" error.  This is fixed using
device_unregister instead of device_destroy.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Peter Osterlund <petero2@telia.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-02-09 04:51:01 -08:00
..
2009-12-01 16:32:20 -08:00
2009-11-13 08:47:53 +01:00
2009-10-01 21:15:40 +02:00
2005-04-16 15:20:36 -07:00
2009-10-01 21:15:40 +02:00
2009-09-22 07:17:25 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-03-26 21:15:27 +01:00
2009-09-22 07:17:25 -07:00
2009-09-22 07:17:25 -07:00
2008-10-21 07:48:11 -04:00