From: Bo Shen Date: Mon, 15 Oct 2012 09:30:28 +0000 (+0800) Subject: ARM: at91/i2c: change id to let i2c-at91 work X-Git-Tag: fixes-for-3.7~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302090a66b85bb82023b07a715f9c9a347be2ac8;p=pandora-kernel.git ARM: at91/i2c: change id to let i2c-at91 work The i2c core driver will turn the platform device ID to busnum When using platfrom device ID as -1, it means dynamically assigned the busnum. When writing code, we need to make sure the busnum, and call i2c_register_board_info(int busnum, ...) to register device if using -1, we do not know the value of busnum In order to solve this issue, set the platform device ID as a fix number Here using 0 to match the busnum used in i2c_regsiter_board_info() Signed-off-by: Bo Shen Signed-off-by: Nicolas Ferre Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Ludovic Desroches --- Reading git-diff-tree failed