/* Unregister the adapter from the i2c layer, then free the structure.  */
void intel_i2c_destroy(struct i2c_adapter *adapter)
/* Unregister the adapter from the i2c layer, then free the structure.  */
void intel_i2c_destroy(struct i2c_adapter *adapter)
{
	struct intel_i2c_chan *chan;
	if (!adapter)
		return;
	chan = container_of(adapter,
			    struct intel_i2c_chan,
			    adapter);
	i2c_del_adapter(&chan->adapter);
	kfree(chan);
}