]> git.baikalelectronics.ru Git - kernel.git/commit
scx200_acb: Fix PCI device reference count
authorJean Delvare <khali@linux-fr.org>
Tue, 1 May 2007 21:26:30 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:30 +0000 (23:26 +0200)
commit58aa5e735f4c177815f0e06a65697be1edd11b6d
tree6766f98e512e2e15fd4b8f54f5264ede10002aa5
parent6ec5baefa015d03f4f726718ca4ef2986d7a0b33
scx200_acb: Fix PCI device reference count

The scx200_acb driver supports two kind of devices, PCI ones and ISA
ones. Even ISA ones are detected using the presence of a given PCI
device, and we get a reference to it, but never put it back, so we
have a leak. Fix it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/scx200_acb.c