diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2015-03-09 18:46:32 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 21:57:28 -0300 |
commit | 9a68c9fa760c958653def811ed7257e3e9bb2ee5 (patch) | |
tree | 420e973471ac5d83a2c4be8f7fe8899ccfcc3c82 | |
parent | 0aa83bb1814e64bfc744abb6bae85e264edee4ef (diff) | |
download | linux-9a68c9fa760c958653def811ed7257e3e9bb2ee5.tar.gz linux-9a68c9fa760c958653def811ed7257e3e9bb2ee5.tar.bz2 linux-9a68c9fa760c958653def811ed7257e3e9bb2ee5.zip |
[media] smiapp: Read link-frequencies property from the endpoint node
The documentation stated that the link-frequencies property belongs to the
endpoint node, not to the device's of_node. Fix this.
There are no DT board descriptions using the driver yet, so a fix in the
driver is sufficient.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index f062f43de354..f714eb7f4092 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -3025,8 +3025,7 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) dev_dbg(dev, "reset %d, nvm %d, clk %d, csi %d\n", pdata->xshutdown, pdata->nvm_size, pdata->ext_clk, pdata->csi_signalling_mode); - rval = of_get_property( - dev->of_node, "link-frequencies", &asize) ? 0 : -ENOENT; + rval = of_get_property(ep, "link-frequencies", &asize) ? 0 : -ENOENT; if (rval) { dev_warn(dev, "can't get link-frequencies array size\n"); goto out_err; @@ -3040,7 +3039,7 @@ static struct smiapp_platform_data *smiapp_get_pdata(struct device *dev) asize /= sizeof(*pdata->op_sys_clock); rval = of_property_read_u64_array( - dev->of_node, "link-frequencies", pdata->op_sys_clock, asize); + ep, "link-frequencies", pdata->op_sys_clock, asize); if (rval) { dev_warn(dev, "can't get link-frequencies\n"); goto out_err; |