You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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
@@ -211,14 +211,14 @@ static int __devinit voodoo3_probe(struct pci_dev *dev, const struct pci_device_
|
||||
return retval;
|
||||
retval = i2c_bit_add_bus(&voodoo3_ddc_adapter);
|
||||
if (retval)
|
||||
i2c_bit_del_bus(&voodoo3_i2c_adapter);
|
||||
i2c_del_adapter(&voodoo3_i2c_adapter);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void __devexit voodoo3_remove(struct pci_dev *dev)
|
||||
{
|
||||
i2c_bit_del_bus(&voodoo3_i2c_adapter);
|
||||
i2c_bit_del_bus(&voodoo3_ddc_adapter);
|
||||
i2c_del_adapter(&voodoo3_i2c_adapter);
|
||||
i2c_del_adapter(&voodoo3_ddc_adapter);
|
||||
iounmap(ioaddr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user