Lines Matching refs:qs
487 struct qcom_socinfo *qs;
498 qs = devm_kzalloc(&pdev->dev, sizeof(*qs), GFP_KERNEL);
499 if (!qs)
502 qs->attr.family = "Snapdragon";
503 qs->attr.machine = socinfo_machine(&pdev->dev,
505 qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u",
507 qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u",
511 qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL,
515 qs->soc_dev = soc_device_register(&qs->attr);
516 if (IS_ERR(qs->soc_dev))
517 return PTR_ERR(qs->soc_dev);
519 socinfo_debugfs_init(qs, info);
524 platform_set_drvdata(pdev, qs);
531 struct qcom_socinfo *qs = platform_get_drvdata(pdev);
533 soc_device_unregister(qs->soc_dev);
535 socinfo_debugfs_exit(qs);