i2c: Discard the i2c algo del_bus wrappers
They are all only calling i2c_del_adapter, so we may as well do it directly. Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:

committed by
Jean Delvare

parent
6b65cd7428
commit
3269711b76
@@ -146,7 +146,7 @@ static int __devinit hydra_probe(struct pci_dev *dev,
|
||||
static void __devexit hydra_remove(struct pci_dev *dev)
|
||||
{
|
||||
pdregw(hydra_bit_data.data, 0); /* clear SCLK_OE and SDAT_OE */
|
||||
i2c_bit_del_bus(&hydra_adap);
|
||||
i2c_del_adapter(&hydra_adap);
|
||||
iounmap(hydra_bit_data.data);
|
||||
release_mem_region(pci_resource_start(dev, 0)+
|
||||
offsetof(struct Hydra, CachePD), 4);
|
||||
|
Reference in New Issue
Block a user