camss.c (597473720f4dc69749542bfcfed4a927a43d935e) | camss.c (016413d967061fc2eb6798a487b3022bef7698a6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * camss.c 4 * 5 * Qualcomm MSM Camera Subsystem - Core 6 * 7 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 8 * Copyright (C) 2015-2018 Linaro Ltd. --- 472 unchanged lines hidden (view full) --- 481 dev_err(dev, "Cannot get remote parent\n"); 482 ret = -EINVAL; 483 goto err_cleanup; 484 } 485 486 asd = v4l2_async_notifier_add_fwnode_subdev( 487 &camss->notifier, of_fwnode_handle(remote), 488 sizeof(*csd)); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * camss.c 4 * 5 * Qualcomm MSM Camera Subsystem - Core 6 * 7 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 8 * Copyright (C) 2015-2018 Linaro Ltd. --- 472 unchanged lines hidden (view full) --- 481 dev_err(dev, "Cannot get remote parent\n"); 482 ret = -EINVAL; 483 goto err_cleanup; 484 } 485 486 asd = v4l2_async_notifier_add_fwnode_subdev( 487 &camss->notifier, of_fwnode_handle(remote), 488 sizeof(*csd)); |
489 of_node_put(remote); |
|
489 if (IS_ERR(asd)) { 490 ret = PTR_ERR(asd); | 490 if (IS_ERR(asd)) { 491 ret = PTR_ERR(asd); |
491 of_node_put(remote); | |
492 goto err_cleanup; 493 } 494 495 csd = container_of(asd, struct camss_async_subdev, asd); 496 497 ret = camss_of_parse_endpoint_node(dev, node, csd); 498 if (ret < 0) 499 goto err_cleanup; --- 524 unchanged lines hidden --- | 492 goto err_cleanup; 493 } 494 495 csd = container_of(asd, struct camss_async_subdev, asd); 496 497 ret = camss_of_parse_endpoint_node(dev, node, csd); 498 if (ret < 0) 499 goto err_cleanup; --- 524 unchanged lines hidden --- |