msm: camera: common: Make platform register centralized

Currently camera modules platform registration/remove function
is being called as a part of module_init function individually.
Building camera as module, current infrastructure cannot support
it, as DLKM only support single module_init/exit function.
This change enables that support by combining all platform
entry/remove functions centrally. Also, remove all submodule
makefiles and combined into one root makefile in order to generate
single kernel object file to dynamically loading the kernel module
in case of DLKM compilation.

CRs-Fixed: 2569808
Change-Id: I59db3ed6cef60123e474db2f222c39836056bd6e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:
Jigarkumar Zala
2019-11-22 12:32:06 -08:00
committed by Karthik Jayakumar
parent 2478b5c0f7
commit 03b6c2140f
117 changed files with 930 additions and 903 deletions

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
*/
#ifndef _CAM_SUBDEV_H_
@@ -74,15 +74,6 @@ int cam_subdev_probe(struct cam_subdev *sd, struct platform_device *pdev,
*/
int cam_subdev_remove(struct cam_subdev *sd);
/**
* cam_register_subdev_fops()
*
* @brief: This common utility function assigns subdev ops
*
* @fops: v4l file operations
*/
void cam_register_subdev_fops(struct v4l2_file_operations *fops);
/**
* cam_register_subdev()
*