From: Jayachandran C Date: Mon, 18 Feb 2013 21:33:19 +0000 (+0000) Subject: i2c: ocores: Fix pointer to integer cast warning X-Git-Tag: v3.9-rc1~75^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6beaddf243b2d4bbc9165fbd89429fa1a7526af1;p=pandora-kernel.git i2c: ocores: Fix pointer to integer cast warning After commit a000b8c1 [i2c: ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg function], compiling i2c-ocores.c for 64-bit gives the following warning: drivers/i2c/busses/i2c-ocores.c: In function 'ocores_i2c_of_probe': drivers/i2c/busses/i2c-ocores.c:334:15: warning: cast from pointer to integer of different size Fix it by casting the pointer to long. Signed-off-by: Jayachandran C Acked-by: Peter Korsgaard Acked-by: Andreas Larsson Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed