iommu/irq_remapping: Refine function irq_remapping_prepare() for maintenance
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 7 Jan 2015 07:31:41 +0000 (15:31 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jan 2015 10:24:24 +0000 (11:24 +0100)
commit30969e34ae6edf10a003f6c0be1fecf6dadcd421
tree81bfb5e19443dafdb61c8b9b193ae5b76628ea55
parentc392f56c946033bd136043079a62b9188888828d
iommu/irq_remapping: Refine function irq_remapping_prepare() for maintenance

Assign intel_irq_remap_ops to remap_ops only if
intel_irq_remap_ops.prepare() succeeds.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Tested-by: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1420615903-28253-15-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/iommu/irq_remapping.c