|
@@ -1685,11 +1685,10 @@ sensors_w83781d_init(void)
|
|
|
if (res)
|
|
|
return res;
|
|
|
|
|
|
- res = i2c_isa_add_driver(&w83781d_isa_driver);
|
|
|
- if (res) {
|
|
|
- i2c_del_driver(&w83781d_driver);
|
|
|
- return res;
|
|
|
- }
|
|
|
+ /* Don't exit if this one fails, we still want the I2C variants
|
|
|
+ to work! */
|
|
|
+ if (i2c_isa_add_driver(&w83781d_isa_driver))
|
|
|
+ isa_address = 0;
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -1697,7 +1696,8 @@ sensors_w83781d_init(void)
|
|
|
static void __exit
|
|
|
sensors_w83781d_exit(void)
|
|
|
{
|
|
|
- i2c_isa_del_driver(&w83781d_isa_driver);
|
|
|
+ if (isa_address)
|
|
|
+ i2c_isa_del_driver(&w83781d_isa_driver);
|
|
|
i2c_del_driver(&w83781d_driver);
|
|
|
}
|
|
|
|