From: Jarkko Nikula Date: Fri, 13 Feb 2015 13:52:25 +0000 (+0200) Subject: i2c: i801: Use managed pcim_* PCI device initialization and reservation X-Git-Tag: omap-for-v4.1/fixes-rc1~146^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef220da43d8537ed7d11da4db17b958cd779887;p=pandora-kernel.git 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 d6fcb3b9cf77 ("[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 Reviewed-by: Jean Delvare Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed