diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2015-02-16 07:45:01 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 17:10:43 -0300 |
commit | 152635c6eadf41931892cccaac5fe8b627d9951b (patch) | |
tree | 70a39e549fb08449ce29a623efbd0a86cd995f57 /drivers/media/i2c | |
parent | 6c9fe765360efa97c63b89af685b620baf5e0012 (diff) | |
download | linux-152635c6eadf41931892cccaac5fe8b627d9951b.tar.gz linux-152635c6eadf41931892cccaac5fe8b627d9951b.tar.bz2 linux-152635c6eadf41931892cccaac5fe8b627d9951b.zip |
[media] Revert "[media] smiapp: Don't compile of_read_number() if CONFIG_OF isn't defined"
This reverts commit cb88d7384e5e05f90c1daa7750bdb467fd026261.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index c73deb0432d7..f1eb259ce618 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -2980,9 +2980,7 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) struct property *prop; __be32 *val; uint32_t asize; -#ifdef CONFIG_OF unsigned int i; -#endif int rval; if (!dev->of_node) @@ -3059,10 +3057,8 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) if (IS_ERR(val)) goto out_err; -#ifdef CONFIG_OF for (i = 0; i < asize; i++) pdata->op_sys_clock[i] = of_read_number(val + i * 2, 2); -#endif for (; asize > 0; asize--) dev_dbg(dev, "freq %d: %lld\n", asize - 1, |