Merge "msm: camera: cdm: Fix of_match table null entry" into camera-kernel.lnx.5.0

Bu işleme şunda yer alıyor:
Savita Patted
2021-03-24 19:53:05 -07:00
işlemeyi yapan: Gerrit - the friendly Code Review server
işleme 520829f658
2 değiştirilmiş dosya ile 5 ekleme ve 5 silme

Dosyayı Görüntüle

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
*/
#include <linux/dma-mapping.h>
@@ -214,6 +214,7 @@ int camera_component_match_add_drivers(struct device *master_dev,
{
int i, rc = 0;
struct platform_device *pdev = NULL;
struct device *start_dev = NULL, *match_dev = NULL;
if (!master_dev || !match_list) {
CAM_ERR(CAM_UTIL, "Invalid parameters for component match add");
@@ -230,14 +231,12 @@ int camera_component_match_add_drivers(struct device *master_dev,
struct device_driver *drv = &cam_component_drivers[i]->driver;
void *drv_ptr = (void *)drv;
#endif
struct device *start_dev = NULL, *match_dev;
start_dev = NULL;
while ((match_dev = bus_find_device(&platform_bus_type,
start_dev, drv_ptr, &camera_platform_compare_dev))) {
put_device(start_dev);
pdev = to_platform_device(match_dev);
CAM_DBG(CAM_UTIL, "Adding matched component:%s",
pdev->name);
CAM_DBG(CAM_UTIL, "Adding matched component:%s", pdev->name);
component_match_add(master_dev, match_list,
camera_component_compare_dev, match_dev);
start_dev = match_dev;