i2c: ocores: Move grlib set/get functions into #ifdef CONFIG_OF block
authorAndreas Larsson <andreas@gaisler.com>
Mon, 19 Nov 2012 12:17:48 +0000 (13:17 +0100)
committerWolfram Sang <w.sang@pengutronix.de>
Thu, 22 Nov 2012 21:34:35 +0000 (22:34 +0100)
commitc5d5474425c4e7e291a98e739ea65f8acd0d8d5c
tree113d89b36e91c14b2405e1c3f4e38c52b608cfa1
parent658122fe5e3a72940631ceda3efcb841054d91dc
i2c: ocores: Move grlib set/get functions into #ifdef CONFIG_OF block

This moves the grlib set and get functions into the #ifdef CONFIG_OF block to
avoid warnings of unimplemented functions when compiling with -Wunused-function
when CONFIG_OF is not defined.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-ocores.c