mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
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>
This commit is contained in:
parent
47a52d024e
commit
ce96bcf5b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user