Lines Matching full:qs
774 struct qcom_socinfo *qs; in qcom_socinfo_probe() local
785 qs = devm_kzalloc(&pdev->dev, sizeof(*qs), GFP_KERNEL); in qcom_socinfo_probe()
786 if (!qs) in qcom_socinfo_probe()
789 qs->attr.family = "Snapdragon"; in qcom_socinfo_probe()
790 qs->attr.machine = socinfo_machine(&pdev->dev, in qcom_socinfo_probe()
792 qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u", in qcom_socinfo_probe()
794 qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u", in qcom_socinfo_probe()
797 if (!qs->attr.soc_id || !qs->attr.revision) in qcom_socinfo_probe()
801 qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL, in qcom_socinfo_probe()
804 if (!qs->attr.serial_number) in qcom_socinfo_probe()
808 qs->soc_dev = soc_device_register(&qs->attr); in qcom_socinfo_probe()
809 if (IS_ERR(qs->soc_dev)) in qcom_socinfo_probe()
810 return PTR_ERR(qs->soc_dev); in qcom_socinfo_probe()
812 socinfo_debugfs_init(qs, info, item_size); in qcom_socinfo_probe()
817 platform_set_drvdata(pdev, qs); in qcom_socinfo_probe()
824 struct qcom_socinfo *qs = platform_get_drvdata(pdev); in qcom_socinfo_remove() local
826 soc_device_unregister(qs->soc_dev); in qcom_socinfo_remove()
828 socinfo_debugfs_exit(qs); in qcom_socinfo_remove()