]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i801: Use managed pcim_* PCI device initialization and reservation
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 13 Feb 2015 13:52:25 +0000 (15:52 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 9 Mar 2015 09:51:59 +0000 (10:51 +0100)
commit8b53f27a3c4371047b54aad6a06ce1a268cec647
tree191ab2edcc6ee6eabedbdd1cc0ca7e3d34b8ad6c
parent13f1a4478dbaef624e8d53cf01131ddc2b0c6b84
i2c: i801: Use managed pcim_* PCI device initialization and reservation

Simplifies the code a bit and makes easier to disable PCI device on driver
detach by removing the pcim_pin_device() call in the future if needed.

Reason why i2c-i801.c doesn't ever call pci_disable_device() was because it
made some systems to hang during power-off. See commit d41de5b959db
("[PATCH] i2c-i801.c: don't pci_disable_device() after it was just enabled")
and
http://marc.info/?l=linux-kernel&m=115160053309535&w=2

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c