Skip to content
Commit 6beaddf2 authored by Jayachandran C's avatar Jayachandran C Committed by Wolfram Sang
Browse files

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: default avatarJayachandran C <jchandra@broadcom.com>
Acked-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Acked-by: default avatarAndreas Larsson <andreas@gaisler.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 58823c72
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment