i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
authorHui Tang <tanghui20@huawei.com>
Mon, 14 Nov 2022 09:25:40 +0000 (17:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:42 +0000 (13:32 +0100)
commitc8889afcd8293d97c9d30f58caa8aeab235cdf44
treea69a1bd318240bf5d4708406b59fea4498afabe7
parentba090c6debb5de85ef1289ce23e9adda05e59f3f
i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe

[ Upstream commit d78a167332e1ca8113268ed922c1212fd71b73ad ]

Using pcim_enable_device() to avoid missing pci_disable_device().

Fixes: 7e94dd154e93 ("i2c-pxa2xx: Add PCI support for PXA I2C controller")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-pxa-pci.c