From 38667f18900afe172a4fe44279b132b4140f920f Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Mon, 29 Jun 2015 10:16:08 +0200 Subject: [PATCH] iommu: Ignore -ENODEV errors from add_device call-back The -ENODEV error just means that the device is not translated by an IOMMU. We shouldn't bail out of iommu driver initialization when that happens, as this is a common scenario on ARM. Not returning -ENODEV in the drivers would be a bad idea, as the IOMMU core would have no indication whether a device is translated or not. This indication is not used at the moment, but will probably be in the future. Fixes: 19762d7 ("iommu: Propagate error in add_iommu_group") Tested-by: Marek Szyprowski Tested-by: Eric Auger Tested-by: Heiko Stuebner Signed-off-by: Joerg Roedel --- Reading git-format-patch failed