]> err.no Git - linux-2.6/blobdiff - drivers/i2c/i2c-core.c
[S390] dasd: Fix cleanup in dasd_{fba,diag}_check_characteristics().
[linux-2.6] / drivers / i2c / i2c-core.c
index 0a79f7661017b0a548868db95bba17e2d73a2796..7608df83d6d1e0625a8b0de306a799dac62143d3 100644 (file)
@@ -654,6 +654,10 @@ int i2c_del_adapter(struct i2c_adapter *adap)
 
        dev_dbg(&adap->dev, "adapter [%s] unregistered\n", adap->name);
 
+       /* Clear the device structure in case this adapter is ever going to be
+          added again */
+       memset(&adap->dev, 0, sizeof(adap->dev));
+
  out_unlock:
        mutex_unlock(&core_lock);
        return res;