Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pktcdvd: removing device does not remove its sysfs dir
This is the counterpart to cba7671 ("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 <[email protected]> Cc: Kay Sievers <[email protected]> Cc: Peter Osterlund <[email protected]> Cc: Al Viro <[email protected]> Cc: Jens Axboe <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information