solos: Remove parameter group from sysfs on ATM dev deregister

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
David Woodhouse 2009-01-28 14:34:34 +11:00
Родитель 3456b22111
Коммит c0fe30265a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1166,6 +1166,8 @@ static void atm_remove(struct solos_card *card)
for (i = 0; i < card->nr_ports; i++) { for (i = 0; i < card->nr_ports; i++) {
if (card->atmdev[i]) { if (card->atmdev[i]) {
dev_info(&card->dev->dev, "Unregistering ATM device %d\n", card->atmdev[i]->number); dev_info(&card->dev->dev, "Unregistering ATM device %d\n", card->atmdev[i]->number);
sysfs_remove_group(&card->atmdev[i]->class_dev.kobj, &solos_attr_group);
atm_dev_deregister(card->atmdev[i]); atm_dev_deregister(card->atmdev[i]);
} }
} }