disp: msm: make msm_drm into single module
Make msm_drm into single module and all child driver registers and unregisters are handled from parent's register and unregister respectively. Change-Id: I017513d1de3b6b25dd5543d7fa7741c0bac1740d Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org> Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
This commit is contained in:
committed by
Chandan Uddaraju
parent
eaa458b165
commit
8b8bfe0165
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#define pr_fmt(fmt) "%s:%d: " fmt, __func__, __LINE__
|
||||
|
||||
@@ -3618,16 +3618,12 @@ static struct platform_driver rotator_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init sde_rotator_init_module(void)
|
||||
void __init sde_rotator_register(void)
|
||||
{
|
||||
return platform_driver_register(&rotator_driver);
|
||||
platform_driver_register(&rotator_driver);
|
||||
}
|
||||
|
||||
static void __exit sde_rotator_exit_module(void)
|
||||
void __exit sde_rotator_unregister(void)
|
||||
{
|
||||
platform_driver_unregister(&rotator_driver);
|
||||
}
|
||||
|
||||
late_initcall(sde_rotator_init_module);
|
||||
module_exit(sde_rotator_exit_module);
|
||||
MODULE_DESCRIPTION("MSM SDE ROTATOR driver");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __SDE_ROTATOR_INLINE_H__
|
||||
@@ -96,7 +96,7 @@ struct sde_rotator_inline_cmd {
|
||||
void *priv_handle;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_MSM_SDE_ROTATOR)
|
||||
#if IS_ENABLED(CONFIG_MSM_SDE_ROTATOR)
|
||||
|
||||
void *sde_rotator_inline_open(struct platform_device *pdev);
|
||||
int sde_rotator_inline_get_dst_pixfmt(struct platform_device *pdev,
|
||||
|
||||
@@ -494,7 +494,6 @@ static const struct of_device_id sde_smmu_dt_match[] = {
|
||||
{ .compatible = SMMU_SDE_ROT_SEC, .data = &sde_rot_sec},
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, sde_smmu_dt_match);
|
||||
|
||||
/*
|
||||
* sde_smmu_probe()
|
||||
@@ -673,28 +672,12 @@ static struct platform_driver sde_smmu_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int sde_smmu_register_driver(void)
|
||||
void __init sde_rotator_smmu_driver_register(void)
|
||||
{
|
||||
return platform_driver_register(&sde_smmu_driver);
|
||||
platform_driver_register(&sde_smmu_driver);
|
||||
}
|
||||
|
||||
static int __init sde_smmu_driver_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = sde_smmu_register_driver();
|
||||
if (ret)
|
||||
SDEROT_ERR("sde_smmu_register_driver() failed!\n");
|
||||
|
||||
return ret;
|
||||
}
|
||||
module_init(sde_smmu_driver_init);
|
||||
|
||||
static void __exit sde_smmu_driver_cleanup(void)
|
||||
void __exit sde_rotator_smmu_driver_unregister(void)
|
||||
{
|
||||
platform_driver_unregister(&sde_smmu_driver);
|
||||
}
|
||||
module_exit(sde_smmu_driver_cleanup);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_DESCRIPTION("SDE SMMU driver");
|
||||
|
||||
Reference in New Issue
Block a user