Lines Matching refs:dev

397 	struct acpi_device *host = to_acpi_device(adev->dev.parent);  in hisi_lpc_acpi_set_io_res()
405 dev_dbg(&adev->dev, "device is not present\n"); in hisi_lpc_acpi_set_io_res()
410 dev_dbg(&adev->dev, "has been enumerated\n"); in hisi_lpc_acpi_set_io_res()
421 dev_dbg(&adev->dev, "failed to get resources\n"); in hisi_lpc_acpi_set_io_res()
450 dev_err(&adev->dev, "translate IO range %pR failed (%d)\n", in hisi_lpc_acpi_set_io_res()
461 static int hisi_lpc_acpi_remove_subdev(struct device *dev, void *unused) in hisi_lpc_acpi_remove_subdev() argument
463 platform_device_unregister(to_platform_device(dev)); in hisi_lpc_acpi_remove_subdev()
589 static int hisi_lpc_acpi_probe(struct device *dev) in hisi_lpc_acpi_probe() argument
608 struct device *dev = &pdev->dev; in hisi_lpc_probe() local
614 lpcdev = devm_kzalloc(dev, sizeof(*lpcdev), GFP_KERNEL); in hisi_lpc_probe()
624 range = devm_kzalloc(dev, sizeof(*range), GFP_KERNEL); in hisi_lpc_probe()
628 range->fwnode = dev_fwnode(dev); in hisi_lpc_probe()
637 dev_err(dev, "register IO range failed (%d)!\n", ret); in hisi_lpc_probe()
643 ret = hisi_lpc_acpi_probe(dev); in hisi_lpc_probe()
645 ret = of_platform_populate(dev->of_node, NULL, NULL, dev); in hisi_lpc_probe()
651 dev_set_drvdata(dev, lpcdev); in hisi_lpc_probe()
654 dev_info(dev, "registered range [%pa - %pa]\n", in hisi_lpc_probe()
662 struct device *dev = &pdev->dev; in hisi_lpc_remove() local
663 struct hisi_lpc_dev *lpcdev = dev_get_drvdata(dev); in hisi_lpc_remove()
667 hisi_lpc_acpi_remove(dev); in hisi_lpc_remove()
669 of_platform_depopulate(dev); in hisi_lpc_remove()