iommu/pamu: Fix PAMU boot crash
authorJoerg Roedel <jroedel@suse.de>
Wed, 23 Aug 2017 14:28:09 +0000 (16:28 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 23 Aug 2017 14:28:09 +0000 (16:28 +0200)
commit3ff2dcc058946c48afd3f2c8cd9e3a880b466c5b
treec22d36b858dde810a04ad9a1153dca04741185b4
parent68a17f0be6feb8de1f5e26b93f49791031374c4c
iommu/pamu: Fix PAMU boot crash

Commit 68a17f0be6fe introduced an initialization order
problem, where devices are linked against an iommu which is
not yet initialized. Fix it by initializing the iommu-device
before the iommu-ops are registered against the bus.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Fixes: 68a17f0be6fe ('iommu/pamu: Add support for generic iommu-device')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu.c
drivers/iommu/fsl_pamu.h
drivers/iommu/fsl_pamu_domain.c
drivers/iommu/fsl_pamu_domain.h