]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Rearrange attach device code
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 30 Oct 2024 06:35:52 +0000 (06:35 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Oct 2024 10:06:45 +0000 (11:06 +0100)
commit4b18ef8491b06e353e8801705092cc292582cb7a
tree12be26f1f31affe40c61316ccec986e3f0c6ffad
parentd6b47dec368400a62d2b9d44c8e136fc15eac72c
iommu/amd: Rearrange attach device code

attach_device() is just holding lock and calling do_attach(). There is
not need to have another function. Just move do_attach() code to
attach_device(). Similarly move do_detach() code to detach_device().

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241030063556.6104-9-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c