Extend the driver to make use of iommu_device_sysfs_add()/remove()
functions to hook up initial sysfs support.
Suggested-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
 
        ipmmu_device_reset(mmu);
 
+       ret = iommu_device_sysfs_add(&mmu->iommu, &pdev->dev, NULL,
+                                    dev_name(&pdev->dev));
+       if (ret)
+               return ret;
+
        iommu_device_set_ops(&mmu->iommu, &ipmmu_ops);
        iommu_device_set_fwnode(&mmu->iommu, &pdev->dev.of_node->fwnode);
 
 {
        struct ipmmu_vmsa_device *mmu = platform_get_drvdata(pdev);
 
+       iommu_device_sysfs_remove(&mmu->iommu);
        iommu_device_unregister(&mmu->iommu);
 
 #if defined(CONFIG_ARM) && !defined(CONFIG_IOMMU_DMA)