Lines Matching +full:tsens +full:- +full:v2

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
13 #include <linux/clk-provider.h>
15 #include <linux/reset-controller.h>
17 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
18 #include <dt-bindings/reset/qcom,gcc-msm8960.h>
21 #include "clk-regmap.h"
22 #include "clk-pll.h"
23 #include "clk-rcg.h"
24 #include "clk-branch.h"
25 #include "clk-hfpll.h"
3710 { .compatible = "qcom,gcc-msm8960", .data = &gcc_msm8960_desc },
3711 { .compatible = "qcom,gcc-apq8064", .data = &gcc_apq8064_desc },
3718 struct device *dev = &pdev->dev; in gcc_msm8960_probe()
3720 struct platform_device *tsens; in gcc_msm8960_probe() local
3723 match = of_match_device(gcc_msm8960_match_table, &pdev->dev); in gcc_msm8960_probe()
3725 return -EINVAL; in gcc_msm8960_probe()
3735 ret = qcom_cc_probe(pdev, match->data); in gcc_msm8960_probe()
3739 if (match->data == &gcc_apq8064_desc) { in gcc_msm8960_probe()
3744 if (of_get_available_child_count(pdev->dev.of_node) != 0) in gcc_msm8960_probe()
3745 return devm_of_platform_populate(&pdev->dev); in gcc_msm8960_probe()
3747 tsens = platform_device_register_data(&pdev->dev, "qcom-tsens", -1, in gcc_msm8960_probe()
3749 if (IS_ERR(tsens)) in gcc_msm8960_probe()
3750 return PTR_ERR(tsens); in gcc_msm8960_probe()
3752 platform_set_drvdata(pdev, tsens); in gcc_msm8960_probe()
3759 struct platform_device *tsens = platform_get_drvdata(pdev); in gcc_msm8960_remove() local
3761 if (tsens) in gcc_msm8960_remove()
3762 platform_device_unregister(tsens); in gcc_msm8960_remove()
3771 .name = "gcc-msm8960",
3789 MODULE_LICENSE("GPL v2");
3790 MODULE_ALIAS("platform:gcc-msm8960");