mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
Bugfix for w83781d.c: unloading of w83783s now works.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@823 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
827ee918d8
commit
78d4aac923
2 files changed
+7
-1
No files matched your search
@@ -251,6 +251,12 @@ int lm75_detach_client(struct i2c_client *client)
|
||||
{
|
||||
int err;
|
||||
|
||||
#ifdef MODULE
|
||||
if (MOD_IN_USE)
|
||||
return -EBUSY;
|
||||
#endif
|
||||
|
||||
|
||||
sensors_deregister_entry(((struct lm75_data *) (client->data))->
|
||||
sysctl_id);
|
||||
|
||||
|
||||
@@ -992,7 +992,7 @@ int w83781d_detach_client(struct i2c_client *client)
|
||||
(((struct
|
||||
w83781d_data *) (client->data))->
|
||||
lm75[0]));
|
||||
if((((struct w83781d_data *) (client->data))->type) != w83783s);
|
||||
if((((struct w83781d_data *) (client->data))->type) != w83783s)
|
||||
i2c_detach_client(&
|
||||
(((struct
|
||||
w83781d_data *) (client->data))->
|
||||
|
||||
Reference in new issue
Block a user