diff options
author | Sakari Ailus | 2018-04-24 12:25:47 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-05-17 12:22:08 +0200 |
commit | ce96bcf5b4dbd91795870b81d5f80d5257e9cb4c (patch) | |
tree | d5551f263057082479dff1a3b96a0abc75979ddb /drivers/media/i2c | |
parent | media: drm: rcar-du: Add support for CRC computation (diff) | |
download | kernel-qcow2-linux-ce96bcf5b4dbd91795870b81d5f80d5257e9cb4c.tar.gz kernel-qcow2-linux-ce96bcf5b4dbd91795870b81d5f80d5257e9cb4c.tar.xz kernel-qcow2-linux-ce96bcf5b4dbd91795870b81d5f80d5257e9cb4c.zip |
media: ov5640: Use dev_fwnode() to obtain device's fwnode
Use dev_fwnode() on the device instead of getting an fwnode handle of the
device's OF node. The result is the same on OF-based systems and looks
better, too.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/ov5640.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 852026baa2e7..7acd3b44d194 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -2536,8 +2536,8 @@ static int ov5640_probe(struct i2c_client *client, sensor->ae_target = 52; - endpoint = fwnode_graph_get_next_endpoint( - of_fwnode_handle(client->dev.of_node), NULL); + endpoint = fwnode_graph_get_next_endpoint(dev_fwnode(&client->dev), + NULL); if (!endpoint) { dev_err(dev, "endpoint node not found\n"); return -EINVAL; |