]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit49f00c7bdb37ce81ffd0a3671a9007c1532a2fe4
tree22bf48a86ede61538e5a58d32333313027305451
parent649302f4c4adf559c037f5d906b6f1782fa63bb3
[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