From: Jean Delvare Date: Tue, 13 Feb 2007 21:08:57 +0000 (+0100) Subject: i2c-ali1563: Fix device initialization X-Git-Tag: v2.6.21-rc1~273^2~4^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849be516c57501ec4729bde51babc25a7b073b65;p=pandora-kernel.git i2c-ali1563: Fix device initialization The i2c-ali1563 initialization looks quite broken to me: * If the I/O space isn't enabled, we forcibly set 3 bits in the PCI configuration space instead of just the one enabling the I/O space. * After that we pretend to check if the write worked, but we don't actually read the new value from the register. * It's probably not a good idea to enable the I/O space if no base address has been set. So I propose the following changes to that part of the driver: * Merge ali1563_enable() into ali1563_setup(). * Check the base address before the I/O space enabled bit. Signed-off-by: Jean Delvare Acked-by: Rudolf Marek --- Reading git-diff-tree failed