From: Andrew Armenia Date: Tue, 24 Jul 2012 12:13:56 +0000 (+0200) Subject: i2c-piix4: Separate registration and probing code X-Git-Tag: v3.6-rc1~116^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e154bf6fbfc167426ee938111a5ffa36bd8541a1;p=pandora-kernel.git i2c-piix4: Separate registration and probing code Some chipsets have multiple sets of SMBus registers each controlling a separate SMBus. Supporting these chipsets properly will require registering multiple I2C adapters for one piix4. The code to initialize and register the i2c_adapter structure has been separated from piix4_probe and allows registration of a piix4 adapter given its base address. Note that the i2c_adapter and i2c_piix4_adapdata structures are now dynamically allocated. Signed-off-by: Andrew Armenia Signed-off-by: Jean Delvare --- Reading git-diff-tree failed