mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-29 21:08:19 +00:00
Fix i2c bus not being unregistered on module unload.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2299 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c74c4df722
commit
8422454e8e
1 file changed
+1
-5
@@ -393,11 +393,6 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
|
||||
}
|
||||
|
||||
|
||||
static void __devexit amd756_remove(struct pci_dev *dev)
|
||||
{
|
||||
i2c_del_adapter(&amd756_adapter);
|
||||
}
|
||||
|
||||
static int __init i2c_amd756_init(void)
|
||||
{
|
||||
struct pci_dev *dev;
|
||||
@@ -417,6 +412,7 @@ static int __init i2c_amd756_init(void)
|
||||
|
||||
static void __exit i2c_amd756_exit(void)
|
||||
{
|
||||
i2c_del_adapter(&amd756_adapter);
|
||||
release_region(amd756_ioport, SMB_IOSIZE);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user