[media] smiapp: Don't compile of_read_number() if CONFIG_OF isn't defined
authorSakari Ailus <sakari.ailus@iki.fi>
Tue, 27 Jan 2015 10:18:49 +0000 (07:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 19:59:22 +0000 (17:59 -0200)
commitcb88d7384e5e05f90c1daa7750bdb467fd026261
tree22bf48a86ede61538e5a58d32333313027305451
parent8d44aeefcd79e9be3b6db4f37efc7544995b619e
[media] smiapp: Don't compile of_read_number() if CONFIG_OF isn't defined

of_read_number() is defined in of.h but does not return an error code, so
that non-of implementation could simply return an error.

Temporarily work around this until of_read_number() can be replaced by
of_property_read_u64_array().

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c