1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

destroy attribute devices earlier to prevent accesses after I2C devices are already gone

This commit is contained in:
Ralph Metzler 2015-09-25 17:45:48 +02:00
parent 8402c7ab05
commit 18481e2ea6

View File

@ -113,6 +113,8 @@ static int __exit octonet_remove(struct platform_device *pdev)
dev = platform_get_drvdata(pdev);
ddb_device_destroy(dev);
ddb_nsd_detach(dev);
ddb_ports_detach(dev);
ddb_i2c_release(dev);
@ -122,7 +124,6 @@ static int __exit octonet_remove(struct platform_device *pdev)
free_irq(platform_get_irq(dev->pfdev, 0), dev);
ddb_ports_release(dev);
ddb_device_destroy(dev);
octonet_unmap(dev);
platform_set_drvdata(pdev, 0);
return 0;